SP.RoleAssignment object
Defines the securable object role assignments for a user or group on the Web site, list, or list item.
Last modified: March 09, 2015
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var object = new SP.RoleAssignment()
The RoleAssignment object has the following members.
Constructor
The RoleAssignment object has the following constructor.
|
Constructor |
Description |
|---|---|
|
Initializes a new instance of the SP.RoleAssignment object. |
Methods
The RoleAssignment object has the following methods.
|
Method |
Description |
|---|---|
|
Removes the role assignment object from the parent role assignment collection. |
|
|
Imports the specified role definition bindings into the collection of role definitions that are bound to the role assignment. |
|
|
|
|
|
Updates the role assignment object with changes that have been made to its properties. |
Properties
The RoleAssignment object has the following properties.
|
Property |
Description |
|---|---|
|
Gets the user or group that corresponds to the Role Assignment. |
|
|
The unique identifier of the role assignment. |
|
|
Gets the collection of role definition bindings for the role assignment. |
See RoleAssignment resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/RoleAssignments(principalid)
HTTP requests
This resource supports the following HTTP commands:
DELETE syntax
DELETE http://<sitecollection>/<site>/_api/web/RoleAssignments(principalid)
MERGE syntax
MERGE http://<sitecollection>/<site>/_api/web/RoleAssignments(principalid)
POST syntax
POST http://<sitecollection>/<site>/_api/web/RoleAssignments(principalid)
PUT syntax
PUT http://<sitecollection>/<site>/_api/web/RoleAssignments(principalid)