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 / 365 role based access ...
Power Apps
Answered

365 role based access on buttons, screens, etc.

(0) ShareShare
ReportReport
Posted on by 37

I have a powerapp where I have a button "Admin", and I'm trying to figure out the best way to only allow admins to access this, based on their 365 user. And while it seems to work based on this, I'm not entirely sure where this property is, how to edit it and if it's a good way to do it?
The button in question:

If(Office365Users.MyProfile().JobTitle="admin", Navigate(scrAdmin,Fade));



Categories:
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Ras21 

     

    Instead of setting the condition on the OnSelect property of the button, you can set the conditional check on the visible property (with this, it will not show the button to non-admin users)

    Now, to identify the admin users, if you have admin as the value for job title, then the expression is correct and you can set the property as:

     

    Button -> Visible -> 

    If(Office365Users.MyProfile().JobTitle="admin", true, false);

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard