Skip to main content

SCIM 2.0 Role management API

Download OpenAPI (YAML)Version 2.0.0

Base URL: https://localhost:9443/t/carbon.super/o/scim2

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
ScopeDescription
readGrants read access
writeGrants write access
adminGrants 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

NameInTypeRequiredDescription
filterquerystring

Filter expression for filtering

startIndexqueryinteger (int32)

The 1-based index of the first query result

countqueryinteger (int32)

Specifies the desired maximum number of query results per page.

sortByquerystring

Specifies the attribute whose value SHALL be used to order the returned responses

sortOderquerystring

The order in which the "sortBy" parameter is applied.

Responses

CodeDescriptionSchema
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

➕ Additional Scopes

To assign permissions, users, or groups to the role you create, you also need the following additional scopes:

ActionScope
Assign permissionsinternal_org_role_mgt_permissions_update
Assign usersinternal_org_role_mgt_users_update
Assign groupsinternal_org_role_mgt_groups_update

Request body: application/scim+json

Schema: RoleCreationObjectV2

8 properties
NameTypeRequiredDescription
schemasarray of stringYes
displayNamestringYes
audienceobject
audience.valuestring
audience.typestring

Allowed values: application, organization

usersarray of object
groupsarray of object
permissionsarray of object

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
schemasobject
startIndexinteger
countinteger
filterstring

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Responses

CodeDescriptionSchema
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 a shared and non-shared roles.
Also, you can update role name, permissions of non-shared roles.
Role audience and associated applications can't be updated through this API.

Scope(Permission) required:

  • internal_org_role_mgt_update

➕ Additional Scopes

To update permissions, users, or groups assignments of the role, you also need the following additional scopes:

ActionScope
Update permissionsinternal_org_role_mgt_permissions_update
Update usersinternal_org_role_mgt_users_update
Update groupsinternal_org_role_mgt_groups_update

Parameters

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

Request body: application/scim+json

Schema: RolePutRequestObjectV2

9 properties
NameTypeRequiredDescription
displayNamestring
audienceobject
audience.valuestring
audience.displaystring
audience.typestring
usersarray of object
groupsarray of object
permissionsarray of object
associatedApplicationsarray of object

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

Responses

CodeDescriptionSchema
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 a shared and non-shared roles.
Also, you can update role name, permissions of non-shared roles.
Role audience and associated applications can't be updated through this API.

Scope(Permission) required:

  • internal_org_role_mgt_update

➕ Additional Scopes

To update permissions, users, or groups assignments of the role, you also need the following additional scopes:

ActionScope
Update permissionsinternal_org_role_mgt_permissions_update
Update usersinternal_org_role_mgt_users_update
Update groupsinternal_org_role_mgt_groups_update

Parameters

NameInTypeRequiredDescription
idpathstringYes

Unique id of the resource type.

Request body: application/scim+json

Schema: PatchRoleOperationRequestObjectV2

2 properties
NameTypeRequiredDescription
schemasarray of string
Operationsarray of RolePatchOperationobjV2

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
itemsPerPageinteger
schemasarray of string
Resourcesarray of RoleObV2

RoleSearchRequestObjectV2​

Type: object

4 properties
NameTypeRequiredDescription
schemasobject
startIndexinteger
countinteger
filterstring

RoleSearchResponseObjectV2​

Type: object

5 properties
NameTypeRequiredDescription
totalResultsinteger
startIndexinteger
itemsPerPageinteger
schemasarray of string
Resourcesarray of RoleObV2

RoleObV2​

Type: object

9 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
idstring
audienceobject
audience.valuestring
audience.displaystring
audience.typestring
propertiesarray of object

RoleCreationObjectV2​

Type: object

8 properties
NameTypeRequiredDescription
schemasarray of stringYes
displayNamestringYes
audienceobject
audience.valuestring
audience.typestring

Allowed values: application, organization

usersarray of object
groupsarray of object
permissionsarray of object

RoleGetResponseObjectV2​

Type: object

15 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasarray of string
idstring
audienceobject
audience.valuestring
audience.displaystring
audience.typestring

Allowed values: application, organization

usersarray of object
groupsarray of object
permissionsarray of object
associatedApplicationsarray of object
propertiesarray of object

RolePostResponseObjectV2​

Type: object

10 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasarray of string
idstring
audienceobject
audience.valuestring
audience.displaystring
audience.typestring

Allowed values: application, organization

RolePutRequestObjectV2​

Type: object

9 properties
NameTypeRequiredDescription
displayNamestring
audienceobject
audience.valuestring
audience.displaystring
audience.typestring
usersarray of object
groupsarray of object
permissionsarray of object
associatedApplicationsarray of object

RolePutResponseObjectV2​

Type: object

10 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasarray of string
idstring
audienceobject
audience.valuestring
audience.displaystring
audience.typestring

Allowed values: application, organization

PatchRoleOperationRequestObjectV2​

Type: object

2 properties
NameTypeRequiredDescription
schemasarray of string
Operationsarray of RolePatchOperationobjV2

RolePatchOperationobjV2​

Type: object

3 properties
NameTypeRequiredDescription
opstring

Allowed values: add, remove, replace

pathstring
valuearray of object

PatchRoleOperationResponseObjectV2​

Type: object

10 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasobject
idstring
audienceobject
audience.valuestring
audience.displaystring
audience.typestring

Allowed values: application, organization

ErrorInvalidInput​

Type: object

4 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring
detailstringYes

ErrorUnauthorized​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring

ErrorNotAcceptable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring

ErrorNoRoleAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasarray of string
detailstringYes

ErrorRoleAlreadyAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

RoleSearchErrorResponseObject​

Type: object

4 properties
NameTypeRequiredDescription
totalResultsintegerYes
startIndexintegerYes
itemsPerPageintegerYes
schemasarray of objectYes

Was this page helpful?