Skip to main content
You're reading Identity & Access Management 7.0.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Roles v1 API (deprecated)

Download OpenAPI (YAML)Version v1

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

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
ScopeDescription
viewinternal_role_mgt_view
createinternal_role_mgt_create
updateinternal_role_mgt_update
deleteinternal_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

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.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
schemasarray of stringYes
displayNamestringYes
usersarray of object
groupsarray of object
permissionsarray of string

Responses

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

Responses

CodeDescriptionSchema
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

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

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

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

Request body: application/scim+json

Schema: RolePutRequestObject

4 properties
NameTypeRequiredDescription
displayNamestring
usersarray of object
groupsarray of object
permissionsarray of string

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
idpathstringYes

Unique id of the resource type.

Request body: application/scim+json

Schema: PatchRoleOperationRequestObject

2 properties
NameTypeRequiredDescription
schemasarray of string
Operationsarray of RoleItemAddGroupobj

Responses

CodeDescriptionSchema
200

Role is updated

PatchRoleOperationResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
406

Not Acceptable

ErrorNotAcceptable

Schemas​

RolesListResponseObject​

Type: object

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

RoleSearchRequestObject​

Type: object

4 properties
NameTypeRequiredDescription
schemasobject
startIndexinteger
countinteger
filterstring

RoleSearchResponseObject​

Type: object

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

RoleOb​

Type: object

4 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
idstring

RoleRequestObject​

Type: object

5 properties
NameTypeRequiredDescription
schemasarray of stringYes
displayNamestringYes
usersarray of object
groupsarray of object
permissionsarray of string

RoleGetResponseObject​

Type: object

9 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasarray of string
idstring
usersarray of object
groupsarray of object
permissionsarray of string

RolePostResponseObject​

Type: object

6 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasarray of string
idstring

RolePutRequestObject​

Type: object

4 properties
NameTypeRequiredDescription
displayNamestring
usersarray of object
groupsarray of object
permissionsarray of string

RolePutResponseObject​

Type: object

6 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasarray of string
idstring

PatchRoleOperationRequestObject​

Type: object

2 properties
NameTypeRequiredDescription
schemasarray of string
Operationsarray of RoleItemAddGroupobj

RoleItemAddGroupobj​

Type: object

3 properties
NameTypeRequiredDescription
opstring

Allowed values: add, remove, replace

pathstring
valuearray of object

PatchRoleOperationResponseObject​

Type: object

6 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.locationstring
meta.resourceTypestring
schemasobject
idstring

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

ErroRoleAlreadyAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

Was this page helpful?