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 / Custom Buttons created...
Power Apps
Unanswered

Custom Buttons created via Customize Command Bar Not Visible in Ribbon Workbench

(0) ShareShare
ReportReport
Posted on by 24

Hello All,

 

I have created 2 customs buttons using the "Customize Command Bar" option. The buttons work fine, and the field level visibility conditions work as required. 

The problem I am facing is that these buttons should be visible to people only assigned a specific security role.

When I imported the custom entity into a test solution and opened it in Ribbon Workbench to add the rules based on a user's security role, the buttons were not visible in the ribbon workbench.

 

Is there any way to get the buttons on the ribbon workbench? Or since they are treated as components, it is not possible?

 

If the latter, is there any workarounds for adding Security role based visibility conditions apart from using the ribbon workbench?

 

Thank You,

Biswa

I have the same question (0)
  • MarioRing Profile Picture
    541 Super User 2024 Season 1 on at

    Unfortunately, that is the major disadvantage of using low-code ribbon buttons, I also hate it;) For that type of scenario you have to use buttons developed completely in Ribbon Workbench.

  • Verified answer
    ivan_apps Profile Picture
    2,187 Moderator on at

    For modern command buttons, the visibility can be access based not security role based.

     

    for example, you can check if the current user has ‘create’ or ‘delete’ org-level permissions on the systemuser table to check if they are an admin… versus checking for the System Administrator role.

     

    so if your security role has a unique access level, you can use that instead of checking for a specific security role by name. 

  • biswaroopPower2 Profile Picture
    24 on at

    Thanks for the response.

     

    Unfortunately, I have 2 different security roles with similar access levels, it's just that one of them is for admins (users who should see the buttons) and one is for managers (they have CRUD access as well).

     

    However, this will work in scenarios where roles have different accesses to the entities.

  • biswaroopPower2 Profile Picture
    24 on at

    Thought as much. 

    Thank you for the confirmation

  • ivan_apps Profile Picture
    2,187 Moderator on at

    What you can do is grant one role access to one of the core tables that aren't used in your app. Say your app does nothing with the 'contact' table - grant one role "Append" access to the contact table and ensure the other does not have it. Then you can do a similar access check with modern command buttons that don't affect your app.

  • biswaroopPower2 Profile Picture
    24 on at

    I was able to take away Delete permission from the other conflicting role after discussions with the team and used DataSourceInfo to meet the visibility requirements.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard