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 / Admin View based of Cu...
Power Apps
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

 

I have the same question (0)
  • Verified answer
    asharma190 Profile Picture
    27 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard