Enable custom ribbon button only if user has permission to edit selected item

The simplest and way to hiding a SharePoint Custom action in a ribbon(/or anywhere) for users whom doesn’t have item edit permissions is, using “Rights” attribute of “CustomAction” element.  Comma separated set of rights can be specified here so that the cumulative rights set will be formulated by ANDing all different individual rights. All possible Rights available are SPBasePermissions


RegistrationId=”10001″ Sequence=”20″
Rights=”EditListItems,AddListItems” >


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s