- 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:
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/roles/Pi5ZcW4sddhtho45?f=pjsonThe following 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=pjsonDescription
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
| Parameter | Details | 
|---|---|
| 
 | The response format. The default format is  Values:  | 
Response properties
| Property | Details | 
|---|---|
| 
 | The ID of the role. | 
| 
 | The name of the role. | 
| 
 | The description of the role. | 
| 
 | The date the role was created. Shown in UNIX time in milliseconds. | 
| 
 | 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
}