Roles v1 API (deprecated)
The SCIM 2.0 Roles API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
4 scopes
| Scope | Description |
|---|---|
view | internal_role_mgt_view |
create | internal_role_mgt_create |
update | internal_role_mgt_update |
delete | internal_role_mgt_delete |
Roles Endpoint
Filter roles
GET /Roles
This API returns roles according to the specified filter, sort,and pagination parameters.
Scope(Permission) required: internal_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. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid roles are found | RolesListResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
Create role
POST /Roles
This API creates a role and returns the details of the created role including its unique ID.
Scope(Permission) required: internal_role_mgt_create
Request body: application/scim+json
Schema: RoleRequestObject
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
displayName | string | Yes | |
users | array of object | ||
groups | array of object | ||
permissions | array of string |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Valid role is created | RolePostResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
409 | Role already exist | ErroRoleAlreadyAvailable |
Search roles
POST /Roles/.search
This API returns roles according to the specified filter, sort and pagination parameters.
Scope(Permission) required: internal_role_mgt_view
Request body: application/scim+json
Schema: RoleSearchRequestObject
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
startIndex | integer | ||
count | integer | ||
filter | string |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Valid roles are found | RoleSearchResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
Get role by ID
GET /Roles/{id}
This API returns the role details of a particular role using its unique ID.
Scope(Permission) required: internal_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 | RoleGetResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
Update role - PUT
PUT /Roles/{id}
This API updates the role details and returns the updated role details using a PUT operation.
Scope(Permission) required: internal_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: RolePutRequestObject
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
users | array of object | ||
groups | array of object | ||
permissions | array of string |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Role is updated | RolePutResponseObject |
400 | Invalid Input | ErrorInvalidInput |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
406 | Not Acceptable | ErrorNotAcceptable |
Delete role
DEL /Roles/{id}
This API deletes a particular role using its unique ID.
Scope(Permission) required: internal_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 |
Update role - PATCH
PATCH /Roles/{id}
This API updates the role details and returns the updated role details using a PATCH operation.
Scope(Permission) required: internal_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: PatchRoleOperationRequestObject
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
Operations | array of RoleItemAddGroupobj |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Role is updated | PatchRoleOperationResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
406 | Not Acceptable | ErrorNotAcceptable |
Schemas
RolesListResponseObject
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | array of string | ||
Resources | array of RoleOb |
RoleSearchRequestObject
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
startIndex | integer | ||
count | integer | ||
filter | string |
RoleSearchResponseObject
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | array of string | ||
Resources | array of RoleOb |
RoleOb
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
id | string |
RoleRequestObject
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
displayName | string | Yes | |
users | array of object | ||
groups | array of object | ||
permissions | array of string |
RoleGetResponseObject
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string | ||
users | array of object | ||
groups | array of object | ||
permissions | array of string |
RolePostResponseObject
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string |
RolePutRequestObject
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
users | array of object | ||
groups | array of object | ||
permissions | array of string |
RolePutResponseObject
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string |
PatchRoleOperationRequestObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
Operations | array of RoleItemAddGroupobj |
RoleItemAddGroupobj
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
op | string | Allowed values: | |
path | string | ||
value | array of object |
PatchRoleOperationResponseObject
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.location | string | ||
meta.resourceType | string | ||
schemas | object | ||
id | string |
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 |
ErroRoleAlreadyAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
Was this page helpful?