Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Filter PowerApp based on attribute of current user



I have made a simple app that feeds from a sharepoint list of name and employee ID numbers.

I would like to set it so that the data is filtered to only show specific data to specific users i.e. each user belongs to a particular store name (this is contained in a field in their Office365 profile) and this field is also a field in the sharepoint list.

How can this be done? I have seen a few posts where email has been used but in this case I would I need to use a different field in office365. 

Impactful Individual
Impactful Individual

Hi @jakeryan56,


Using custom properties are not possible at the moment.


You could vote for it here:


Robot Happy Rick

Skilled Sharer
Skilled Sharer

@jakeryan56 Help me to understand a bit more please.  You have an Office365 field utilized universally and you would like to match that against your SP list to filter and display to the PowerApps user based on that field?


If that is correct, I did something similar with employee id's.  Our employee id's are stored in MailNickname  in Office365.  I retrieve that within the app OnStart with a global variable..  You can then user this to compare against your SP list.

Hope this is along the lines of what you are seeking.  

Set(UserID, Office365Users.MyProfile().MailNickname)
Community Support
Community Support

Hi @jakeryan56,


Could you please share a bit more about the store name that you mentioned? Is it a custom property within your Office 365 profile?


I agree with @Rick72't thought almost, if the Store name is a custom property within your Office 365 Profile, I afraid that there is no way to reference this property using Office365 Users connector (Office365Users.MyProfile().PropertyName) or User() function within PowerApps currently.


If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:


More details about the output properties of the Office365Users.MyProfile(), please check the following article:


More details about the User() function in PowerApps, please check the following article:

User function



Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,568)