SP.RoleDefinition.basePermissions Property
Gets or sets a value that specifies the base permissions for the role definition.
Applies to: SharePoint Foundation 2010
In this article
Property Value
Applies To
Remarks
var value = SP.RoleDefinition.get_basePermissions();
SP.RoleDefinition.set_basePermissions(value);
Property Value
Type: SP.BasePermissions
Applies To
Exceptions
- [System.InvalidOperationException]
Site inherits permission levels from a parent site, and permission levels cannot be customized. Error code: -1.
Remarks
When assigning values to the property, use bitwise AND, OR, and XOR operators with values from the BasePermissions enumrateion. It must not be null.