cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ArmanShafiee
Helper I
Helper I

Show gallery items depending on user profile

Hello, 

I hope you're doing well. 

I have an issue regarding a gallery that I want to filter based on the user's email (which is stored in a SharePoint list). 

I want some items to be visible only if the user's email is stored in a list called "VIP users" and the others only if their email is stored in a list called "Normal users". 

Could you guys please help me with this ?

Thanks, 

Arman

5 REPLIES 5
eka24
Super User
Super User

Consider this:

Filter(Datasource, EmailColumn=User().Email)

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

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.

Hello,

Could you please be more specific ? 

Thanks, 

Arman

I was not specific because your columns in your list are not known. Can you show a sample of your list or Give the names of columns containing the user emails?

 

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

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.

Hello @eka24 , my bad. 

The columns containing the users' emails are called "User email" for both lists. 

eka24
Super User
Super User

Try

Filter('VIP users', 'User Email'=User().Email)

And

Filter('Normal users', 'User Email'=User().Email)

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,106)