web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter PowerApp based ...
Power Apps
Unanswered

Filter PowerApp based on attribute of current user

(1) ShareShare
ReportReport
Posted on by 6

Hi,

 

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. 

Categories:
I have the same question (0)
  • Rick72 Profile Picture
    385 on at

    Hi @jakeryan56,

     

    Using custom properties are not possible at the moment.

     

    You could vote for it here: https://powerusers.microsoft.com/t5/PowerApps-Ideas/Connect-to-custom-SharePoint-Online-user-property-field/idi-p/12130

     

    Robot Happy Rick

  • KickingApps Profile Picture
    628 on at

    @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)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

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

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-users#myprofile

     

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

    User function

     

     

    Best regards,

    Kris

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard