The SPRights enumeration specifies the rights that apply to users, site groups, and cross-site groups.
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.
|AddAndCustomizePages||0x00040000||Add, 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|
|AddDelPrivateWebParts||0x10000000||Add or remove Web Parts on a personalized Web Part Page.||Contributor, Web Designer, Administrator|
|AddListItems||0x00000002||Add items to lists, add documents to document libraries, and add Web discussion comments.||Contributor, Web Designer, Administrator|
|ApplyStyleSheets||0x00100000||Apply a style sheet (.CSS file) to the Web site.||Web Designer, Administrator|
|ApplyThemeAndBorder||0x00080000||Apply a theme or borders to the entire Web site.||Web Designer, Administrator|
|BrowseDirectories||0x04000000||Browse directories in a Web site.||Contributor, Web Designer, Administrator|
|BrowseUserInfo||0x08000000||View information about users. This right is not available through the user interface.||Guest, Reader, Contributor, Web Designer, Administrator|
|CancelCheckout||0x00000100||Check in a document without saving the current changes.||Web Designer, Administrator|
|CreatePersonalGroups||0x01000000||Create, 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|
|CreateSSCSite||0x00400000||Create a Web site using Self-Service Site Creation.||Reader, Contributor, Web Designer, Administrator|
|DeleteListItems||0x00000008||Delete items from a list, documents from a document library, and Web discussion comments in documents.||Contributor, Web Designer, Administrator|
|EditListItems||0x00000004||Edit 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|
|EmptyMask||0x00000000||Has no permissions on the Web site. Not available through the user interface.||N/A|
|FullMask||-1||Has all permissions on the Web site. Not available through the user interface.||N/A|
|ManageListPermissions||0x00000400||Grant, deny, or change user permissions to a list.||Administrator|
|ManageLists||0x00000800||Approve content in lists, add or remove columns in a list, and add or remove public views of a list.||Web Designer, Administrator|
|ManagePersonalViews||0x00000200||Create, change, and delete personal views of lists.||Contributor, Web Designer, Administrator|
|ManageRoles||0x02000000||Create, change, and delete site groups, including adding users to the site groups and specifying which rights are assigned to a site group.||Administrator|
|ManageSubwebs||0x00800000||Manage or create subsites.||Administrator|
|ManageWeb||0x40000000||Manage a site, including the ability to perform all administration tasks for the site and manage contents and permissions||Administrator|
|OpenWeb||0x00010000||Open 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|
|UpdatePersonalWebParts||0x20000000||Update Web Parts to display personalized information.||Contributor, Web Designer, Administrator|
|ViewListItems||0x00000001||View items in lists, documents in document libraries, view Web discussion comments, and set up e-mail alerts for lists.||Reader, Contributor, Web Designer, Administrator|
|ViewPages||0x00020000||View pages in a Web site.||Reader, Contributor, Web Designer, Administrator|
|ViewUsageData||0x00200000||View reports on Web site usage.||Administrator|
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.
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Security: Code Access Security