The Roles endpoint allows creating and managing roles that can be mapped to a permission set.
To use the version-specific parameters/attributes, you must add api-version=N to the query parameter.
Previous versions of the API are also supported with the corresponding functionality.
Method Details
| HTTPS Method | Entity Action | Request URI | Description | 
|---|---|---|---|
| GET | Read | /scim/{tenant}/v2/Roles | Get the list of all roles | 
| GET | Read | /scim/{tenant}/v2/Roles/{uid} | Get a role | 
| POST | Create | /scim/{tenant}/v2/Roles | Create a role | 
| DELETE | Delete | /scim/{tenant}/v2/Roles/{uid} | Delete a role | 
Required Permissions
| Function | Required Permissions | 
|---|---|
| GET | 
 | 
| GET ALL | 
 | 
| CREATE | 
 | 
| DELETE | 
 | 
Get a List of Roles
[GET] /Roles
This endpoint will return all existing roles within the tenant.
Sample Response
{
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
    "totalResults": 13,
    "resources": [
        {
            "schemas": ["urn:hid:scim:api:idp:2.0:Role"],
            "id": "RL_AUDITV",
            "meta": {
                "resourceType": "Role",
                "location": "https://[base-server-url]/scim/tenant/v2/Policy/Roles/RL_AUDITV",
                "version": "1"
            },
            "name": "Audit Viewer"
        },
        {
            "schemas": ["urn:hid:scim:api:idp:2.0:Role"],
            "id": "RL_CFGMGR",
            "meta": {
                "resourceType": "Role",
                "location": "https://[base-server-url]/scim/tenant/v2/Policy/Roles/RL_CFGMGR",
                "version": "1"
            },
            "name": "Configuration Manager"
        },
    <--truncated output-->
}Create a Role
[POST] /Roles
Accept: application/scim+json
Sample Response
{
    "schemas": ["urn:hid:scim:api:idp:2.0:Role"],
    "id": "NEWROLE",
    "meta": {
        "resourceType": "Role",
        "location": "https://[base-server-url]/scim/tenant/v2/Roles/NEWROLE",
        "version": "1"
    },
    "name": "New Role",
    "description": "my new role"
}Get a Role
[GET] /Roles/{uid}
Where {uid} is the Role Code.
Sample Response
{
    "schemas": ["urn:hid:scim:api:idp:2.0:Role"],
    "id": "RL_CONFIG",
    "meta": {
        "resourceType": "Role",
        "location": "https://[base-server-url]/scim/tenant/v2/Roles/RL_CONFIG",
        "version": "1"
    },
    "name": "Configuration",
    "description": "Allows configuring User Repositories, OOB Delivery Gateways, Channels, and Authorization Profiles."
}Delete a Role
All the delete endpoints follow the same standard pattern and can be reached through the following URL pattern:
Accept: application/scim+json