7 out of 16 rated this helpful - Rate this topic

SPBasePermissions Enumeration

Windows SharePoint Services 3
Specifies the built-in permissions available in Windows SharePoint Services.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
[FlagsAttribute] 
public enum SPBasePermissions : ulong
  Member name Description
AddAndCustomizePages Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Windows SharePoint Services–compatible editor. 
AddDelPrivateWebParts Add or remove personal Web Parts on a Web Part Page. 
AddListItems Add items to lists, add documents to document libraries, and add Web discussion comments. 
ApplyStyleSheets Apply a style sheet (.css file) to the Web site. 
ApplyThemeAndBorder Apply a theme or borders to the entire Web site. 
ApproveItems Approve a minor version of a list item or document. 
BrowseDirectories Enumerate files and folders in a Web site using Microsoft Office SharePoint Designer 2007 and WebDAV interfaces. 
BrowseUserInfo View information about users of the Web site. 
CancelCheckout Discard or check in a document which is checked out to another user. 
CreateAlerts Create e-mail alerts. 
CreateGroups Create a group of users that can be used anywhere within the site collection. 
CreateSSCSite Create a Web site using Self-Service Site Creation. 
DeleteListItems Delete items from a list, documents from a document library, and Web discussion comments in documents. 
DeleteVersions Delete past versions of a list item or document. 
EditListItems Edit items in lists, edit documents in document libraries, edit Web discussion comments in documents, and customize Web Part Pages in document libraries. 
EditMyUserInfo Allows a user to change his or her user information, such as adding a picture. 
EmptyMask Has no permissions on the Web site. Not available through the user interface. 
EnumeratePermissions Enumerate permissions on the Web site, list, folder, document, or list item. 
FullMask Has all permissions on the Web site. Not available through the user interface. 
ManageAlerts Manage alerts for all users of the Web site. 
ManageLists Create and delete lists, add or remove columns in a list, and add or remove public views of a list. 
ManagePermissions Create and change permission levels on the Web site and assign permissions to users and groups. 
ManagePersonalViews Create, change, and delete personal views of lists. 
ManageSubwebs Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites.  
ManageWeb Grant the ability to perform all administration tasks for the Web site as well as manage content. Activate, deactivate, or edit properties of Web site scoped Features through the object model or through the user interface (UI). When granted on the root Web site of a site collection, activate, deactivate, or edit properties of site collection scoped Features through the object model. To browse to the Site Collection Features page and activate or deactivate site collection scoped Features through the UI, you must be a site collection administrator. 
Open Allow users to open a Web site, list, or folder to access items inside that container. 
OpenItems View the source of documents with server-side file handlers. 
UpdatePersonalWebParts Update Web Parts to display personalized information. 
UseClientIntegration Use features that launch client applications; otherwise, users must work on documents locally and upload changes.  
UseRemoteAPIs Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 interfaces to access the Web site. 
ViewFormPages View forms, views, and application pages, and enumerate lists. 
ViewListItems View items in lists, documents in document libraries, and view Web discussion comments. 
ViewPages View pages in a Web site. 
ViewUsageData View reports on Web site usage. 
ViewVersions View past versions of a list item or document. 
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Warning: CreateSSCSite is hidden
It may be important to note that CreateSSCSite (0x400000) is a hidden base permission, and that it is not copied if you copy a built-in permission level using the "Copy Permission Level" button at the bottom of ~/_layouts/editrole.aspx
Warning: CreateSSCSite is hidden
Warning:

The base permission CreateSSCSite (0x400000) is hidden, and is not copied by the "Copy Permission Level" button at the bottom of the page for editing permission levels (_layouts/editrole.aspx).

You can generate your own list in code...
//show name, decimal and hex
foreach (string enumName in Enum.GetNames(typeof(SPBasePermissions)))
{
Console.WriteLine(String.Format("Item: {0,-25} Value: {1,20} {1,20:X}",
enumName, (ulong)Enum.Parse(typeof(SPBasePermissions), enumName)));
}
SPBasePermissions Values
Values from the reflector (longs, not ints):
Name                            Hex Value       Decimal Value
AddAndCustomizePages 0x40000 262144
AddDelPrivateWebParts 0x10000000 268435456
AddListItems 0x2 2
ApplyStyleSheets 0x100000 1048576
ApplyThemeAndBorder 0x80000 524288
ApproveItems 0x10 16
BrowseDirectories 0x4000000 67108864
BrowseUserInfo 0x8000000 134217728
CancelCheckout 0x100 256
CreateAlerts 0x8000000000 549755813888
CreateGroups 0x1000000 16777216
CreateSSCSite 0x400000 4194304
DeleteListItems 0x8 8
DeleteVersions 0x80 128
EditListItems 0x4 4
EditMyUserInfo 0x10000000000 1099511627776
EmptyMask 0 0x0
EnumeratePermissions 0x4000000000000000 4611686018427387904
FullMask 0x7fffffffffffffff 9223372036854775807
ManageAlerts 0x4000000000 274877906944
ManageLists 0x800 2048
ManagePermissions 0x2000000 33554432
ManagePersonalViews 0x200 512
ManageSubwebs 0x800000 8388608
ManageWeb 0x40000000 1073741824
Open 0x10000 65536
OpenItems 0x20 32
UpdatePersonalWebParts 0x20000000 536870912
UseClientIntegration 0x1000000000 68719476736
UseRemoteAPIs 0x2000000000 137438953472
ViewFormPages 0x1000 4096
ViewListItems 0x1 1
ViewPages 0x20000 131072
ViewUsageData 0x200000 2097152
ViewVersions 0x40 64


Need Help Forming Permissions Masks for WebService Consumption

We could use more information on this particular class when using it in the UserGroup webservice (specifically, UserGroup.AddRole). I understand that the SPRights Enumeration has been depracated, so I try building permissions masks with SPBasePermissions. I liked how all of the numeric values were defined for SPRights. Any way we can get them defined for SPBasePermissions?

For other developers trying to use this webservice call: If you end up building the mask using the API, don't bother casting the resultant mask as an Integer - you will most likely get an overflow, or at the very least the wrong value.