SCIM 2.0 Role management API
The SCIM 2.0 Role Management API (version 2.0.0).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth/token, authorization URL https://localhost:9443/oauth/authorize
3 scopes
| Scope | Description |
|---|---|
read | Grants read access |
write | Grants write access |
admin | Grants read and write access to administrative information |
Roles Endpoint
Filter Roles
GET /v2/Roles
This API returns roles according to the specified filter, sort and pagination parameters.
Scope(Permission) required: internal_org_role_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
filter | query | string | Filter expression for filtering | |
startIndex | query | integer (int32) | The 1-based index of the first query result | |
count | query | integer (int32) | Specifies the desired maximum number of query results per page. | |
sortBy | query | string | Specifies the attribute whose value SHALL be used to order the returned responses | |
sortOder | query | string | The order in which the "sortBy" parameter is applied. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid roles are found | RolesListResponseObjectV2 |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | No Role found | ErrorNoRoleAvailable |
Create Role
POST /v2/Roles
This API creates a role and returns the details of the created role including its unique ID. These roles can only be associated with the applications which are created in the organization level. You cannot use these roles with the shared applications from the root organization.
Scope(Permission) required: internal_org_role_mgt_create
Request body: application/scim+json
Schema: RoleCreationObjectV2
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
displayName | string | Yes | |
audience | object | ||
audience.value | string | ||
audience.type | string | Allowed values: | |
users | array of object | ||
groups | array of object | ||
permissions | array of object |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Valid role is created | RolePostResponseObjectV2 |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
409 | Role already exist | ErrorRoleAlreadyAvailable |
Search Roles
POST /v2/Roles/.search
This API returns roles according to the specified filter, sort and pagination parameters.
Scope(Permission) required: internal_org_role_mgt_view
Request body: application/scim+json
Schema: RoleSearchRequestObjectV2
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
startIndex | integer | ||
count | integer | ||
filter | string |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid roles are found | RoleSearchResponseObjectV2 |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid roles are not found | RoleSearchErrorResponseObject |
Get Role by ID
GET /v2/Roles/{id}
This API returns the role details of a particular role using its unique ID.
Scope(Permission) required: internal_org_role_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique ID of the resource type. |
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid role is found | RoleGetResponseObjectV2 |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid role is not found | ErrorNoRoleAvailable |
Update Role - PUT
PUT /v2/Roles/{id}
This API updates the assigned users and groups of the role. Role name, role audience, role permissions and associated applications cannot be updated through this API.
Scope(Permission) required: internal_org_role_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique ID of the resource type. |
Request body: application/scim+json
Schema: RolePutRequestObjectV2
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
audience | object | ||
audience.value | string | ||
audience.display | string | ||
audience.type | string | ||
users | array of object | ||
groups | array of object | ||
permissions | array of object | ||
associatedApplications | array of object |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Role is updated | RolePutResponseObjectV2 |
400 | Invalid Input | ErrorInvalidInput |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid role is not found | ErrorNoRoleAvailable |
406 | Not Acceptable | ErrorNotAcceptable |
Delete Role
DEL /v2/Roles/{id}
This API deletes a particular role using its unique ID. From this operation in the organization level, you only can delete the roles that are created directly in the organization level. You cannot delete the roles that are shared from the root organization.
Scope(Permission) required: internal_org_role_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique ID of the resource type. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Role is deleted | |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid role is not found | ErrorNoRoleAvailable |
Update Role - PATCH
PATCH /v2/Roles/{id}
This API updates the assigned users and groups of the role. Role name, role audience, role permissions and associated applications cannot be updated through this API.
Scope(Permission) required: internal_org_role_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique id of the resource type. |
Request body: application/scim+json
Schema: PatchRoleOperationRequestObjectV2
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
Operations | array of RolePatchOperationobjV2 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Role is updated | PatchRoleOperationResponseObjectV2 |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid role is not found | ErrorNoRoleAvailable |
406 | Not Acceptable | ErrorNotAcceptable |
Schemas
RolesListResponseObjectV2
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | array of string | ||
Resources | array of RoleObV2 |
RoleSearchRequestObjectV2
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
startIndex | integer | ||
count | integer | ||
filter | string |
RoleSearchResponseObjectV2
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | array of string | ||
Resources | array of RoleObV2 |
RoleObV2
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
id | string | ||
audience | object | ||
audience.value | string | ||
audience.display | string | ||
audience.type | string | ||
properties | array of object |
RoleCreationObjectV2
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
displayName | string | Yes | |
audience | object | ||
audience.value | string | ||
audience.type | string | Allowed values: | |
users | array of object | ||
groups | array of object | ||
permissions | array of object |
RoleGetResponseObjectV2
Type: object
15 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string | ||
audience | object | ||
audience.value | string | ||
audience.display | string | ||
audience.type | string | Allowed values: | |
users | array of object | ||
groups | array of object | ||
permissions | array of object | ||
associatedApplications | array of object | ||
properties | array of object |
RolePostResponseObjectV2
Type: object
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string | ||
audience | object | ||
audience.value | string | ||
audience.display | string | ||
audience.type | string | Allowed values: |
RolePutRequestObjectV2
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
audience | object | ||
audience.value | string | ||
audience.display | string | ||
audience.type | string | ||
users | array of object | ||
groups | array of object | ||
permissions | array of object | ||
associatedApplications | array of object |
RolePutResponseObjectV2
Type: object
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string | ||
audience | object | ||
audience.value | string | ||
audience.display | string | ||
audience.type | string | Allowed values: |
PatchRoleOperationRequestObjectV2
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
Operations | array of RolePatchOperationobjV2 |
RolePatchOperationobjV2
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
op | string | Allowed values: | |
path | string | ||
value | array of object |
PatchRoleOperationResponseObjectV2
Type: object
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | object | ||
id | string | ||
audience | object | ||
audience.value | string | ||
audience.display | string | ||
audience.type | string | Allowed values: |
ErrorInvalidInput
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string | ||
detail | string | Yes |
ErrorUnauthorized
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string |
ErrorNotAcceptable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string |
ErrorForbidden
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string |
ErrorNoRoleAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | array of string | ||
detail | string | Yes |
ErrorRoleAlreadyAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
RoleSearchErrorResponseObject
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Yes | |
startIndex | integer | Yes | |
itemsPerPage | integer | Yes | |
schemas | array of object | Yes |
Was this page helpful?