/[roleID]: Role

URL:
https://[root]/portals/[portalID]/roles/[roleID]
Methods:
GET
Operations:
Delete, Privileges, Set Privileges, Update

Example usage

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

Use dark colors for code blocksCopy
1
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/roles/Pi5ZcW4sddhtho45?f=pjson

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

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/roles/Pi5ZcW4sddhtho45?f=pjson

Description

The resource for a custom role lists the role's properties.

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
{
  "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
{
  "id": "Pi5ZcW4sddhtho45",
  "name": "Viewer",
  "description": "custom viewer",
  "created": 1472061811000,
  "modified": 1472061811000
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.