Create Role

Description

The create role operation (POST only) creates a new custom role where a more fine-grained set of privileges can be defined with the set role privileges operation.

The operation is only available to default organization administrators.

Request Parameters

Parameter

Details

[Common Parameters]

For a complete listing, see common parameters.

name

The name for the custom role. It can contain up to 128 characters.

description

The description for the role. It can be up to 250 characters.

Response Properties

Property

Details

success

Indicates if the operation was successful.

id

The ID of the role.

Example Usage

URL for Create Role

http://www.arcgis.com/sharing/rest/portals/LkFyxb9zDq7vAxxx/createRole

JSON Response Syntax

{
  "success": true | false,
  "id": "<role id>"
}

JSON Response Example

{
  "success": true,
  "id": "edgebRxFLiLt15df"
}

7/27/2017