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 gallery by team...
Power Apps
Unanswered

Filter gallery by team based on user lookup

(0) ShareShare
ReportReport
Posted on by

HI,

I have created an accident reporting app linked to SharePoint(SP) list. I'm trying to restrict 'varUser' (manager) to only see the Team(s) I want them to have permission to see (data security protection). The higher up the management chain, the more teams they see.

 

I have created a separate 'Accident team permission' SP list to act as a lookup, with each team being a column (CS1, CS5, EDU11) and a list of e-mails for who I want to have permission. The code I created stops at the first team, I do understand why, but can't think how to correct it so they can see multiple teams if they are further up the management chain and appear in my permisions list. I kind of want If, they appear in this team, then display and this team and this team.... This code sits in my Gallery Items;

If(Lower(LookUp('Accident team permissions', CS5 = varUser.Email).CS5) = Lower(varUser.Email),

Filter('Accident/Incident', 'Sub team' = "The Lodge Nursery"),

 

Lower(LookUp('Accident team permissions', CS1 = varUser.Email).CS1) = Lower(varUser.Email),

Filter('Accident/Incident', 'Sub team' = "Cressingham"),

 

Lower(LookUp('Accident team permissions', EDU1 = varUser.Email).EDU11) = Lower(varUser.Email),

Filter('Accident/Incident', 'Sub team' = "Pinecroft"))

 

Any help/tips much appreciated Clyde123

Categories:

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard