Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Admin View based of Current User

(0) ShareShare
ReportReport
Posted on by 31

I am trying to create two variables "OnStart". First Set(CurrentUser, User()) and second Set(AdminUser, to specific person that is a admin.  I am trying to do this in order to set up an icon on my home screen that only admins can get into based off an IF function that would go something like: If(CurrentUser = AdminUser, Navigate(AdminScreen), Notify("You don't have admin rights.")).  I am not sure how to set the second variable to capture all the information of the admin profile.  Any suggestions?

 

@links to members

 

  • Verified answer
    asharma190 Profile Picture
    27 on at
    Re: Admin View based of Current User

    Try first 

    Set (currentUser, User().Email ) 

     then 

    set (AdminUser, [userEmail])

     

    this will be easier to compare. 

     

    Else if you want to set it to the entire user this is the format the second variable would be in:

    { FullName: “Monika Singh”, Email: “monika123@tsinfo.com”, Image: “blob:1234…5678” }

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard