SP.RoleAssignment object

Defines the securable object role assignments for a user or group on the Web site, list, or list item.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.RoleAssignment()

Members

The RoleAssignment object has the following members.

Constructor

The RoleAssignment object has the following constructor.

Constructor

Description

RoleAssignment

Initializes a new instance of the SP.RoleAssignment object.

Methods

The RoleAssignment object has the following methods.

Method

Description

deleteObject

Removes the role assignment object from the parent role assignment collection.

importRoleDefinitionBindings

Imports the specified role definition bindings into the collection of role definitions that are bound to the role assignment.

initPropertiesFromJson

update

Updates the role assignment object with changes that have been made to its properties.

Properties

The RoleAssignment object has the following properties.

Property

Description

member

Gets the user or group that corresponds to the Role Assignment.

principalId

The unique identifier of the role assignment.

roleDefinitionBindings

Gets the collection of role definition bindings for the role assignment.

REST resource endpoint

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)