Notifications
Announcements
Hi Team,
It's been a while, I am seeking assistance if it's possible to filter gallery based on user security level? Like if the app will detect that the user viewing the app is the admin, he/she will see all gallery values?
Kindly see screen shot of my code on start.
Thank you!
@nmlsanmiguel
If you have a separate list for security privileges, you can use If condition for Filters.
If(LookUp(SecurityTable,Email = User().Email,Role) = "Admin",DataSource,Filter(filer condition for other users))
Here if the role is Admin from SecurityTable that contains email and roles, it will display whole datasource but if the role is other than Admin, you can specify your own filter.
Cheers!
Hello, Thank you for your answer. I tried the logic statement above,
but lookup returning blank, idk why it returns blank when in MS List it has true value. Thank you!
Where is varUsers defined? I suggest you use User().Email instead.
Hello, it's already working I just forgot to click the run on start button that's why it's return value is null.
Thank you
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268