/[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:

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:

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

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

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close