Microsoft.SharePoint


SPRights Enumeration (Microsoft.SharePoint)

NOTE: This enumeration is now obsolete.

Specifies the rights that apply to users, site groups, and cross-site groups.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
<FlagsAttribute> _
<ObsoleteAttribute("Use SPBasePermissions instead")> _
Public Enumeration SPRights
Visual Basic (Usage)
Dim instance As SPRights
C#
[FlagsAttribute] 
[ObsoleteAttribute("Use SPBasePermissions instead")] 
public enum SPRights
Members

 Member nameDescription
AddAndCustomizePagesValue: 0x00040000. Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Windows SharePoint Services–compatible editor. Groups: WebDesigner, Administrator. 
AddDelPrivateWebPartsValue: 0x10000000. Add or remove personal Web Parts on a Web Part. Groups: Contributor, WebDesigner, Administrator. 
AddListItemsValue: 0x00000002. Add items to lists, add documents to document libraries, and add Web discussion comments. Groups: Contributor, Web Designer, Administrator. 
ApplyStyleSheetsValue: 0x00100000. Apply a style sheet (.css file) to the Web site. Groups: WebDesigner, Administrator. 
ApplyThemeAndBorderValue: 0x00080000. Apply a theme or borders to the entire Web site. Groups: Web Designer, Administrator. 
BrowseDirectoriesValue: 0x04000000. Enumerate files and folders in a Web site by using Microsoft Office SharePoint Designer 2007 and Web DAV interfaces. Groups: Contributor, WebDesigner, Administrator. 
BrowseUserInfoValue: 0x08000000. View information about users of the web site. Guest, Reader, Contributor, Web Designer, Administrator. 
CancelCheckoutValue: 0x00000100. Check in a document without saving the current changes. Groups: WebDesigner, Administrator. 
CreatePersonalGroupsValue: 0x01000000. Create a group of users that can be used anywhere within the site collection. Groups: Administrator. 
CreateSSCSiteValue: 0x00400000. Create a Web site using Self-Service Site Creation. Groups: Reader, Contributor, Web Designer, Administrator. 
DeleteListItemsValue: 0x00000008. Delete items from a list, documents from a document library, and Web discussion comments in documents. Groups: Contributor, WebDesigner, Administrator. 
EditListItemsValue: 0x00000004. Edit items in lists, edit documents in document libraries, edit Web discussion comments in documents, and customize Web Part Pages in document libraries. Groups: Contributor, Web Designer, Administrator. 
EmptyMaskValue: 0x00000000. Has no permissions on the Web site. Not available through the user interface. Groups: N/A. 
FullMaskValue: -1. Has all permissions on the Web site. Not available through the user interface. Groups: N/A. 
ManageListPermissionsNo longer used. 
ManageListsValue: 0x00000800. Create and delete lists, add or remove columns in a list, and add or remove public views of a list. Groups: WebDesigner, Administrator. 
ManagePersonalViewsValue: 0x00000200. Create, change, and delete personal views of lists. Groups: Contributor, WebDesigner, Administrator. 
ManageRolesValue: 0x02000000. Create, change, and delete site groups, including add users to the site groups and specifyi which rights are assigned to a site group. Groups: Administrator. 
ManageSubwebsValue: 0x00800000. Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites. Groups: Administrator. 
ManageWebValue: 0x40000000. Manage a site, including the ability to perform all administration tasks for the site and manage contents and permissions. Groups: Administrator. 
OpenWebValue: 0x00010000. Allow users to open a Web site, list, or folder. Groups: Guest, Reader, Contributor, WebDesigner, Administrator. 
UpdatePersonalWebPartsValue: 0x20000000. Update Web Parts to display personalized information. Groups: Contributor, WebDesigner, Administrator. 
ViewListItemsValue: 0x00000001. View items in lists, documents in document libraries, and view Web discussion comments. Groups: Reader, Contributor, Web Designer, Administrator. 
ViewPagesValue: 0x00020000. View pages in a Web site. Groups: Reader, Contributor, WebDesigner, Administrator. 
ViewUsageDataValue: 0x00200000. View reports on Web site usage. Groups: 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 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, can produce an unpleasant user experience.

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

See Also

Tags :


Community Content

Thomas Lee
obsolete?
Obsolete?

Why is this page obsolete?

I need this permissions to make my custom action!

David Mann [MVP]
Use SPBasePermissions Instead
See here: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx
Tags :

Page view tracker