SP.RoleDefinitionCollection.item property (sp.js)
Gets the role definition at the specified index in the collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.RoleDefinitionCollection.get_item ()
Parameters
- index
Return value
Type: SP.RoleDefinition
The role definition at the specified index.
REST resource endpoint
To get a role definition, send a GET request to the RoleDefinitions endpoint. See RoleDefinitionCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/roledefinitions/item
HTTP requests
This resource supports the following HTTP commands:
- GET
GET syntax
GET http://<sitecollection>/<site>/_api/web/roledefinitions/item
Resource parameters
- index