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 / Command Bar Button Vis...
Power Apps
Answered

Command Bar Button Visible by Security Team or Role

(0) ShareShare
ReportReport
Posted on by 810
I know the answer is probably no,.... but is there any way to set the visibility of a command bar button from a Main Grid to include the security role or team the logged in user is a part of? 
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    1,498 on at
    There is no out-of-the-box way to control command bar visibility based on security roles or team membership.
     
    But you can achieve it by:
    • Using JavaScript-based enable/display rules for roles
    • Using Web API or precomputed fields for team membership
  • Verified answer
    Kalathiya Profile Picture
    1,838 Super User 2026 Season 1 on at

    Since you’re working with the modern command bar (Power Fx), unfortunately you can’t access Security Roles directly in Power Fx for button visibility.

    You can achieve this using the Workbench and JavaScript.

    Please follow below video for steps by step guidance.

    https://www.youtube.com/watch?v=fCAGCfCIxTc

     

    If this response resolves your issue, please mark it as the Verified Answer so it can help other community members as well.
    ---------------------------------------------------------------------------------

    📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.

    ✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.

    💛 A Like always motivates me to keep contributing!

  • ctedesco3307 Profile Picture
    810 on at
    nm
     
     

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

11manish 519

#2
WarrenBelz Profile Picture

WarrenBelz 439 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 433

Last 30 days Overall leaderboard