Microsoft.SharePoint


SPBasePermissions Enumeration (Microsoft.SharePoint)
Specifies the built-in permissions available in Windows SharePoint Services.

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

Visual Basic (Declaration)
<FlagsAttribute> _
Public Enumeration SPBasePermissions As ULong
Visual Basic (Usage)
Dim instance As SPBasePermissions
C#
[FlagsAttribute] 
public enum SPBasePermissions : ulong
Members

 Member nameDescription
AddAndCustomizePagesAdd, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Windows SharePoint Services–compatible editor. 
AddDelPrivateWebPartsAdd or remove personal Web Parts on a Web Part Page. 
AddListItemsAdd items to lists, add documents to document libraries, and add Web discussion comments. 
ApplyStyleSheetsApply a style sheet (.css file) to the Web site. 
ApplyThemeAndBorderApply a theme or borders to the entire Web site. 
ApproveItemsApprove a minor version of a list item or document. 
BrowseDirectoriesEnumerate files and folders in a Web site using Microsoft Office SharePoint Designer 2007 and WebDAV interfaces. 
BrowseUserInfoView information about users of the Web site. 
CancelCheckoutDiscard or check in a document which is checked out to another user. 
CreateAlertsCreate e-mail alerts. 
CreateGroupsCreate a group of users that can be used anywhere within the site collection. 
CreateSSCSiteCreate a Web site using Self-Service Site Creation. 
DeleteListItemsDelete items from a list, documents from a document library, and Web discussion comments in documents. 
DeleteVersionsDelete past versions of a list item or document. 
EditListItemsEdit items in lists, edit documents in document libraries, edit Web discussion comments in documents, and customize Web Part Pages in document libraries. 
EditMyUserInfoAllows a user to change his or her user information, such as adding a picture. 
EmptyMaskHas no permissions on the Web site. Not available through the user interface. 
EnumeratePermissionsEnumerate permissions on the Web site, list, folder, document, or list item. 
FullMaskHas all permissions on the Web site. Not available through the user interface. 
ManageAlertsManage alerts for all users of the Web site. 
ManageListsCreate and delete lists, add or remove columns in a list, and add or remove public views of a list. 
ManagePermissionsCreate and change permission levels on the Web site and assign permissions to users and groups. 
ManagePersonalViewsCreate, change, and delete personal views of lists. 
ManageSubwebsCreate subsites such as team sites, Meeting Workspace sites, and Document Workspace sites.  
ManageWebGrant 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. 
OpenAllow users to open a Web site, list, or folder to access items inside that container. 
OpenItemsView the source of documents with server-side file handlers. 
UpdatePersonalWebPartsUpdate Web Parts to display personalized information. 
UseClientIntegrationUse features that launch client applications; otherwise, users must work on documents locally and upload changes.  
UseRemoteAPIsUse SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 interfaces to access the Web site. 
ViewFormPagesView forms, views, and application pages, and enumerate lists. 
ViewListItemsView items in lists, documents in document libraries, and view Web discussion comments. 
ViewPagesView pages in a Web site. 
ViewUsageDataView reports on Web site usage. 
ViewVersionsView past versions of a list item or document. 
See Also

Tags :


Community Content

Jeremy Budnack
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.


anonymous coward
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


Tags : contentbug

Mike Smith MCT
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)));
}
Tags :

Page view tracker