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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Restrict rows in galle...
Power Apps
Unanswered

Restrict rows in gallery based on user's membership in Active Directory group

(0) ShareShare
ReportReport
Posted on by 192

Is it possible to restrict users to ONLY be able to see records in a gallery if they are in an AD group?

The backend data is coming from Excel and not a Sharepoint List, in case that matters.  

Categories:
I have the same question (0)
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    I mean if you restrict the document with the AD group then you will only see it if you're in that group because you won't have access to the excel document.  You can also use the DatasourceInfo to read / show a gallery if they have read/write permissions to the datasource etc. 
    DataSourceInfo function - Power Platform | Microsoft Learn

     

     

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    You can utilize Office 365 Groups connector if for some reason you can't secure the file by group and want the app to look it up by using: 

    !IsEmpty(Filter(Office365Groups.ListGroups().value,displayName = "Group Name"))
     
    This will return True if they have the group in their list which means they are in it. etc. 
  • pennyland Profile Picture
    192 on at

    I will try that!  Thank you!  Stay tuned. 🙂

  • pennyland Profile Picture
    192 on at

    I need multiple filters I guess. I only want to show certain records if they are in group1, and only other records if they are in group 2.  I can use Office365groups as that has been set up as well.

     

    Thanks again for your help!

  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at

    Yeah, you would have to have your filter be something like Filter(Excelfile, ('Column to limit by' = 'value' && !IsEmpty(Filter(Office365Groups.ListGroups().value,displayName = "Group Name"))) ||  ('Column to limit by' = 'value2' && !IsEmpty(Filter(Office365Groups.ListGroups().value,displayName = "Group Name2"))) and so forth assuming you had a specific column that would be tied to a group. This way you show records only that are equal to that AND they are in a certain AD group. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard