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 / Gallery filter on manager
Power Apps
Answered

Gallery filter on manager

(0) ShareShare
ReportReport
Posted on by 106

i'm trying to filter gallery.... when the manager logged in, the gallery should list user details only those users who are direct reportie of logged in manager.. anybody has idea?please share..

Categories:
  • eka24 Profile Picture
    20,925 on at

    Follow this post
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Getting-records-created-by-a-Direct-Report/m-p/542656#M166819

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Abhilash M abi Profile Picture
    106 on at

    I'm not storing Manager details.. It directly coming from Azure... 

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Abhilash ,

    Do you want to only list items that manager is current user?

    Do you mean that the manager information is set in azure ad profile?

    Could you tell me

    1)the gallery's Items?

    2)what is your data source?

    I need to know which column in your table is stored manager email.

     

    I assume that your data source is sharepoint list, you have a person column with user's data.

    I've made a similar test for your reference:

    1)you could get user's email from this:

    personfield.Email

    2)you could get user's manager's Email by using office365 users connector

    Then use Manager_V2 function to get user's manager's Email.

     

    Try to set your gallery's Items:

    Filter(listname,Office365Users.ManagerV2(personfield.Email).mail=User().Email)

    //please replace with your listname and personfieldname.

     

     

    Best regards,

  • Abhilash M abi Profile Picture
    106 on at

    yes, data source is sharepoint only and i just achieved that by saving manager's id in sharepoint...  Thanks for your info..

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard