SP.RoleDefinition.basePermissions property (sp.js)
Gets or sets a value that specifies the base permissions for the role definition.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.RoleDefinition.get_basePermissions ()
var value = SP.RoleDefinition.set_basePermissions ()
Return value
Type: SP.BasePermissions
Remarks
When assigning values to the property, use bitwise AND, OR, and XOR operators with values from the SP.BasePermissions enumeration (sp.ribbon). It must not be null.
REST resource endpoint
See RoleDefinition resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/roledefinitions(roledefinitionid)/basePermissions
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/roledefinitions(roledefinitionid)/basePermissions
GET syntax
GET http://<sitecollection>/<site>/_api/web/roledefinitions(roledefinitionid)/basePermissions