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 / Trying to set a Admin ...
Power Apps
Answered

Trying to set a Admin ICON to be visible based off of the user email who is logged into the app

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I have a PowerApp, in which I am trying to set the Visible property of a icon to only show if the person email who is is logged into the app matches the any of the emails in the Admin email collection, but I cannot get this to work. Any help would be greatly appreciated.  

 

This is the below code that I currently have on the Icon, and cannot figure out how to get this to work correctly. 

If(User().Email = (FIOAdminEmailCollection), true, false)

 

I placed this code on the OnStart of the App:

ClearCollect(FIOAdminEmailCollection, 'FIO OCF App Admins'.ReviewerEmail)
Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,715 Super User 2025 Season 2 on at

    Hi @Johnny23 

     

    Change the code as follow:

     

    OnStart of the App

    ClearCollect(FIOAdminEmailCollection, 'FIO OCF App Admins')

      And then the filter:

    If(
     User().Email in FIOAdminEmailCollection.ReviewerEmail, 
     true, 
     false
    )

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 402

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 293 Super User 2025 Season 2

Last 30 days Overall leaderboard