Skip To Content

/[roleID]: Role

Example usage

Below is a sample ArcGIS Online request URL used to access an individual role resource:

https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/roles/Pi5ZcW4sddhtho45?f=pjson

Below is a sample ArcGIS Enterprise request URL used to access an individual role resource:

https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/roles/Pi5ZcW4sddhtho45?f=pjson

Description

This resource lists properties of a custom role.

Viewer and Data Editor are pre-built custom roles, thus they do not allow to be updated or deleted through the Update Role, Set Role Privileges, or Delete Role operations.

Request parameters

ParameterDetails
f

The response format. The default format is html.

Values: html | json | pjson

Response properties

PropertyDetails
id

The ID of the role.

name

The name of the role.

description

The description of the role.

created

The date the role was created. Shown in UNIX time in milliseconds.

modified

The date the role was last modified. Shown in UNIX time in milliseconds.

JSON Response syntax


{
  "id": "<role id>",
  "name": "<role name>",
  "description": "<role description>",
  "created": date created shown in UNIX time,
  "modified": date last modified shown in UNIX time
}

JSON Response example


{
  "id": "Pi5ZcW4sddhtho45",
  "name": "Viewer",
  "description": "custom viewer",
  "created": 1472061811000,
  "modified": 1472061811000
}