Reputation: 457
I want to hide a button on the ribbon for all users except System Admin and I do not want to write javascript to check the security role of the logged in users. Is there any out-of-box way I can achieve this?
Also is there any entity that only admin has access to which I can use to hide show the button?
Upvotes: 0
Views: 2836
Reputation: 1
Yes you can try this option.
Similarly we can modify the security role for others as well.
Upvotes: 0
Reputation: 22836
Yes, you can achieve this without code.
One option is using MiscellaneousPrivilgeRule
under display rules and making sure to pick some privilege like Publish Duplicate Detection Rules
which may not be given to non-Admin roles.
There’s no OOB entity for that purpose, you can identify one in your system or create a dummy entity for that purpose.
Upvotes: 1