Go to the entity for which you wish to hide a button.
If the entity is native to Magentrix, navigate to the Setup Home page, and on the left, go to Create > Entities. If it’s a Salesforce object, go to Extend > Salesforce.
Use the Search Bar to locate the entity and click on its Name.
Click on the Buttons tab at the bottom of the page.
Next to the Button you wish to edit, click on the Action Arrow and select Edit.
Under Additional Details, locate the Visible= field and enter: {!IsInRole("name of role")} where “name of role” is the role you wish to make this button visible to.
You may also specify which role to hide this button from by entering: {!Not(IsInRole(name of role))}.
Click Save.