SP.Sharing.UserRoleAssignment object

Defines a pair of a user and a role that is associated with the user.

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

var object = new SP.Sharing.UserRoleAssignment()

Members

The UserRoleAssignment object has the following members.

Constructor

The UserRoleAssignment object has the following constructor.

Constructor

Description

UserRoleAssignment

Initializes a new instance of the SP.Sharing.UserRoleAssignment object.

Methods

The UserRoleAssignment object has the following methods.

Method

Description

initPropertiesFromJson

writeToXml

Properties

The UserRoleAssignment object has the following properties.

Property

Description

role

Gets or sets a user Role value.

typeId

This member is reserved for internal use and is not intended to be used directly from your code.

userId

Gets or sets a user identifier.