SPRights Enumeration

The SPRights enumeration specifies the rights that apply to users, site groups, and cross-site groups.

Members

The following table shows the members of the SPRights enumeration, their values, a brief description of each right, and site groups in which the right is included by default.

NameValueDescriptionSite Groups
AddAndCustomizePages0x00040000Add, change, or delete ASPX pages, HTML pages, or Web Part Pages, and edit the Web site using a Windows SharePoint Services-compatible editor.Web Designer, Administrator
AddDelPrivateWebParts0x10000000Add or remove Web Parts on a personalized Web Part Page.Contributor, Web Designer, Administrator
AddListItems0x00000002Add items to lists, add documents to document libraries, and add Web discussion comments.Contributor, Web Designer, Administrator
ApplyStyleSheets0x00100000Apply a style sheet (.CSS file) to the Web site.Web Designer, Administrator
ApplyThemeAndBorder0x00080000Apply a theme or borders to the entire Web site.Web Designer, Administrator
BrowseDirectories0x04000000Browse directories in a Web site.Contributor, Web Designer, Administrator
BrowseUserInfo0x08000000View information about users. This right is not available through the user interface.Guest, Reader, Contributor, Web Designer, Administrator
CancelCheckout0x00000100Check in a document without saving the current changes.Web Designer, Administrator
CreatePersonalGroups0x01000000Create, change, and delete site groups, including adding users to the site groups and specifying which rights are assigned to a site group.Contributor, Web Designer, Administrator
CreateSSCSite0x00400000Create a Web site using Self-Service Site Creation.Reader, Contributor, Web Designer, Administrator
DeleteListItems0x00000008Delete items from a list, documents from a document library, and Web discussion comments in documents.Contributor, Web Designer, Administrator
EditListItems0x00000004Edit items in lists, edit documents in document libraries, edit Web discussion comments in documents, and customize Web Part Pages in document libraries.Contributor, Web Designer, Administrator
EmptyMask0x00000000Has no permissions on the Web site. Not available through the user interface.N/A
FullMask-1Has all permissions on the Web site. Not available through the user interface.N/A
ManageListPermissions0x00000400Grant, deny, or change user permissions to a list.Administrator
ManageLists0x00000800Approve content in lists, add or remove columns in a list, and add or remove public views of a list.Web Designer, Administrator
ManagePersonalViews0x00000200Create, change, and delete personal views of lists.Contributor, Web Designer, Administrator
ManageRoles0x02000000Create, change, and delete site groups, including adding users to the site groups and specifying which rights are assigned to a site group.Administrator
ManageSubwebs0x00800000Manage or create subsites.Administrator
ManageWeb0x40000000Manage a site, including the ability to perform all administration tasks for the site and manage contents and permissions Administrator
OpenWeb0x00010000Open the SharePoint Web site and get metadata related to the site, as well as see the underlying navigation structure (not exposed in the user interface). Guest, Reader, Contributor, Web Designer, Administrator
UpdatePersonalWebParts0x20000000Update Web Parts to display personalized information.Contributor, Web Designer, Administrator
ViewListItems0x00000001View items in lists, documents in document libraries, view Web discussion comments, and set up e-mail alerts for lists.Reader, Contributor, Web Designer, Administrator
ViewPages0x00020000View pages in a Web site.Reader, Contributor, Web Designer, Administrator
ViewUsageData0x00200000View reports on Web site usage.Administrator

Remarks

A permission consists of a right or combination of rights as specified by the SPRights enumeration. Each permission within the collection of permissions for a site or list is represented by an SPPermission object, whose PermissionMask property contains the set of rights assigned to the user or group.

Unlike rights as used in the user interface, rights do not depend on other rights in the object model. Individual rights can be assigned to users and groups without including dependent rights and they can be assigned in any combination. Be careful when customizing permissions through the object model, because assigning a single right to a user or group, for example, may produce an unpleasant user experience.

For information about the site groups that are available by default, see the SPRoleType enumeration. For general information about permissions and security, see Security, Users, and Groups Overview.

Requirements

Namespace: Microsoft.SharePoint

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Security: Code Access Security

Page view tracker