SP.RoleDefinitionCollection.add Method (sp.js)
Adds a new role definition to the collection based on the role definition information.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.RoleDefinitionCollection.add()
Parameters
parameters
Type: SP.RoleDefinitionCreationInformationThe information associated with the new role definition.
Return value
Type: SP.RoleDefinition
The new role definition.
REST resource endpoint
To create a role definition, send a POST request to the RoleDefinitions endpoint. See RoleDefinitionCollection resource for more information.