Set Role Privileges

Description

The Set Role Privileges operation (POST only) allows default organization administrators to set privileges for a custom role.

Request Parameters

Parameter

Details

[Common Parameters]

For a complete listing, see common parameters.

privileges

A JSON object that contains an array of strings with predefined permissions within each. See Privileges for all available role privileges.

Example:

{
    "privileges": [
      "portal:user:createItem",
      "portal:user:joinGroup"
  ]
}

Response Properties

Property

Details

success

Indicates if the operation was successful.

Example Usage

URL for Set Role Privileges

http://www.arcgis.com/sharing/rest/portals/LkFyxb9zDq7vAxxx/roles/edgebRxFLiLt15df/setPrivileges

JSON Response Syntax

{
  "success": true | false
}

JSON Response Example

{
  "success": true
}

3/3/2017