Hiding a Custom List Toolbar Menu Item from Non-Administrative Users

// October 2nd, 2008 // Sharepoint

In order to hide a custom list toolbar menu items from non-administrative users, use the following:

<CustomAction Id=”SharePoint……”
RegistrationType=”List”
RegistrationId=”100″
GroupId=”SettingsMenu”
Location=”Microsoft.SharePoint.StandardMenu”
Sequence=”1000″
Title=”Configure my App”
Description=”….”
Rights =”ManageLists”
ImageUrl=”/_layouts/images/myimage.gif”>
<UrlAction Url=”~site/_layouts/myApp/Configure.aspx?List={ListId}&amp;SiteURL={SiteUrl}”/>
</CustomAction>

Rights attribute Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. To specify multiple rights, separate the values by using commas. The set of rights are grouped logically according to AND logic, which means that a user must have all the specified rights to see an action.

Reference: http://msdn.microsoft.com/en-us/library/ms460194.aspx

Leave a Reply