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 / Filtering Gallery data...
Power Apps
Unanswered

Filtering Gallery data by an Azure AD group

(0) ShareShare
ReportReport
Posted on by 697

Hello!

So I'm having a little trouble finding solid info here, but can we add or have Powerapps look at Azure AD groups? I see info on O365 groups, but we don't really use those.  I believe I can create a dynamic O365 group, though, and that might work.  Any suggestions there are appreciated.

 

But with that I would also like to Filter my gallery data by a person's group, because I have a gallery of Assets and I only want them to see the assets for their branch.  So some sort of Filter where : 

 

If group = F425Manager, then filter assets to only show where Branch=F425.  

 

That make sense?

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @CharlesBrewer ,

     

    You could use this formula to get groups:

    Office365Groups.ListGroups().value

    vbofengmsft_0-1671495904769.png

    In addition , what is the meaning of 'group = F425Manager'? What is 'group'? Do you want to check if a user is in a certain group? If so ,you could try

    UserEmail in ForAll(Office365Groups.ListGroupMembers(GroupID).value,mail)

     

    Best Regards,

    Bof

  • CharlesBrewer Profile Picture
    697 on at

    No I don't want to get the groups or the users, I want to use the groups as a Filter.

     

    Basically, I have a gallery, and this gallery displays assets (laptops) for our entire company.  But I want each Manager to only see the assets at their branch.  So if they're Branch1Manager, I want them to only see laptops where Branch=1, and so forth, as an example. I'd prefer to use Azure groups if possible, but if I have to use O365 then maybe I can try the dynamic groups. But I don't know how to do the filtering.

  • muzzamal Profile Picture
    102 on at

    Hi, I am also struggling with the same issue. I want the gallery data to be filtered based on AD group (where current user is part of a group).
    Did you managed to get the solution?

  • CharlesBrewer Profile Picture
    697 on at

    Hey @muzzamal 

    Been a while on this but I did not end up using an AD Group, no. For me I just did location comparison for the items in the gallery and the user browsing so filter their items, UNLESS they are in a dynamic o365 group I made, then they can see all of the laptops.

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard