Print this page

How to make custom button visible for particular users?

Knowledge Article Number 000188475
Description A System Administrator has created a custom button and wants it to be visible only for System Administrator users. No other users, should able to see or access this button.
That functionality is currently unavailable and can be voted in Idea Exchange: Limit the Visibility of a Custom Button Based on Profile

However, since the Users are associated to a Profile you can make use of a Formula to restrict the access to a specific profile.
A good way to resolve the issue is to create a formula field and take advantage of the HYPERLINK function (add a image to the hyperlink to look like button) to conditionally display the link. For example, the following formula will display the Google hyperlink to "System Administrators" users only:
IF(CONTAINS($Profile.Name,"System Administrator"),HYPERLINK(""​,"Button name")," ")
No other user will be able to see the "button" (Image).

NOTE: does not support URL hacks. If, within the above URL you add variables, redirect within or in some other way "hack" the URL we are unable to support it.

See Also:

Out of Scope: Building/Reviewing custom buttons and links

promote demote