[#PowerTip] Hide button for non-admin users without any scripting

Show and Hide ribbon button in PowerApps haven’t change for so long. Most of the implementation are not using first party app or its core functionality thus some of buttons are not relevant for the business to have any value.

Hiding the button is easy though using ribbon workbench by tampering the ribbon XML. Hiding based on set condition or based on role is also quiet common to do. The scenario that I plan to cover is hiding standard or custom buttons for non-admin users and show for admin users.

Adding display rule as below and tag it to the core button command will get the job done.

This method is more robust because the check is from the server end rather than writing script using the enable rule which is running in the client side.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s