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 / Show icon based on log...
Power Apps
Answered

Show icon based on logged in user

(0) ShareShare
ReportReport
Posted on by 1,168

Hi,

I have a Sharepoint list called Users that contains, fisrtname, last name, email & a series of yes/no columns that will be used to allow access to certain features.

 

Trying to allow access by using the visible parameter on an icon by using the following but it is not working

 

If(User().Email = Lookup(MySPList, ColD=true),true, false)

 

Thanks in advance for any assistance

 

Todd

 

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,650 Moderator on at

    @Tango 

    Try

     

    Lookup(MySPList, Lower(email) = Lower(User().Email), ColD)

     

     

    EDIT:

    Also, it's always way better to stay away from Yes/No columns if you are going to use them in PowerApps. Use Choice columns with choices Yes/No instead - these work a lot better in PowerApps

  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @Tango 

     

    Try this code for the Visible property.

    User().Email in Distinct(Filter(Users,ColD=true),Email)

     

    The code above will check if the current user's email is in the list of distinct emails that are filtered using the ColD condition. You don't need true or false here as the statement itself will return only true or false.

     

    If in case you the opposite result, you just use the exclamation point function.

    !(User().Email in Distinct(Filter(Users,ColD=true),Email))

      

  • Tango Profile Picture
    1,168 on at

    Thanks @cha_cha @EddieE for your responses. Much appreciated

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard