Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

SCIM 2.0 Groups API

Download OpenAPI (YAML)Version v1

Base URL: https://api.asgardeo.io/t/{root-organization-name}/o/scim2

The WSO2 Identity Platform - SCIM 2.0 Group Management API (version v1).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

Authorization code OAuth flow + Organization Switch

Groups Endpoint​

This endpoint performs actions related to all groups in the organization

Filter Groups​

GET /Groups

This API returns groups according to the specified filter, sort, and pagination parameters.

Scope(Permission) required: internal_org_group_mgt_view

Parameters

NameInTypeRequiredDescription
attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

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.

domainquerystring

The name of the user store where filtering needs to be applied.

Responses

CodeDescriptionSchema
200

Valid groups are found / No Group found

GroupsListResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden

Create Group​

POST /Groups

This API creates a group and returns the details of the created group including its unique ID.

Scope(Permission) required: internal_org_group_mgt_create

Parameters

NameInTypeRequiredDescription
attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Request body: application/scim+json

Schema: GroupRequestObject

3 properties
NameTypeRequiredDescription
schemasarray of stringYes
displayNamestringYes
membersarray of object

Responses

CodeDescriptionSchema
201

Valid group is created

GroupResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Group is not found

ErrorGroupNotAvailable
409

Group already exist

ErrorGroupAlreadyAvailable

Search Groups​

POST /Groups/.search

This API returns groups according to the specified filter, sort, and pagination parameters.

Scope(Permission) required: internal_org_group_mgt_view

Request body: application/scim+json

Schema: GroupSearchRequestObject

3 properties
NameTypeRequiredDescription
schemasobject
startIndexinteger
filterstring

Responses

CodeDescriptionSchema
200

Valid groups are found / Valid groups are not found

GroupSearchResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden

Get Group by ID​

GET /Groups/{id}

This API returns the group details of a particular group using its unique ID.

Scope(Permission) required: internal_org_group_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 group is found

GroupResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Valid group is not found

ErrorNoGroupAvailable

Update Group - PUT​

PUT /Groups/{id}

This API updates the group details and returns the updated group details using a PUT operation.

Scope(Permission) required: internal_org_group_mgt_update

Parameters

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Request body: application/scim+json

Schema: GroupPutRequestObject

2 properties
NameTypeRequiredDescription
displayNamestring
membersarray of object

Responses

CodeDescriptionSchema
200

Group is updated

GroupPutResponseObject
400

Invalid Input

ErrorInvalidInput
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Valid group is not found

ErrorNoGroupAvailable

Delete Group​

DEL /Groups/{id}

This API deletes a particular group using its unique ID.

Scope(Permission) required: internal_org_group_mgt_delete

Parameters

NameInTypeRequiredDescription
idpathstringYes

Unique ID of the resource type.

Responses

CodeDescriptionSchema
204

Group is deleted

401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Valid group is not found

ErrorNoGroupAvailable

Update Group - PATCH​

PATCH /Groups/{id}

This API updates the group details and returns the updated group details using a PATCH operation.

Scope(Permission) required: internal_org_group_mgt_update

Parameters

NameInTypeRequiredDescription
idpathstringYes

Unique id of the resource type.

attributesquerystring

SCIM defined attributes parameter.

excludedAttributesquerystring

SCIM defined excludedAttribute parameter.

Request body: application/scim+json

Schema: PatchGroupOperationRequestObject

2 properties
NameTypeRequiredDescription
schemasarray of string
Operationsarray of GroupItemObj

Responses

CodeDescriptionSchema
200

Group is updated

PatchGroupOperationResponseObject
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Valid group is not found

ErrorNoGroupAvailable

Schemas​

UserResponseObject​

Type: object

15 properties
NameTypeRequiredDescription
metaobjectYes
meta.createdstring
meta.locationstring
meta.lastModifiedstring
meta.resourceTypestring
schemasobject
usernamestring
idstring
nameobject
name.givenNamestring
name.familyNamestring
emailsarray of object
urn:ietf:params:scim:schemas:extension:enterprise:2.0:Userobject
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.managerobject
rolesobject

GroupRequestObject​

Type: object

3 properties
NameTypeRequiredDescription
schemasarray of stringYes
displayNamestringYes
membersarray of object

GroupResponseObject​

Type: object

10 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.createdstring
meta.locationstring
meta.lastModifiedstring
meta.resourceTypestring
schemasarray of string
idstring
membersarray of object
rolesarray of object

GroupsListResponseObject​

Type: object

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

GroupSearchRequestObject​

Type: object

3 properties
NameTypeRequiredDescription
schemasobject
startIndexinteger
filterstring

GroupSearchResponseObject​

Type: object

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

groupOb​

Type: object

8 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.createdstring
meta.locationstring
meta.lastModifiedstring
membersarray of object
rolesarray of object
idstring

GroupPutRequestObject​

Type: object

2 properties
NameTypeRequiredDescription
displayNamestring
membersarray of object

GroupPutResponseObject​

Type: object

9 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.createdstring
meta.locationstring
meta.lastModifiedstring
meta.resourceTypestring
schemasarray of string
idstring
membersarray of object

PatchGroupOperationRequestObject​

Type: object

2 properties
NameTypeRequiredDescription
schemasarray of string
Operationsarray of GroupItemObj

GroupItemObj​

Type: object

3 properties
NameTypeRequiredDescription
opstring

Allowed values: add, remove, replace

valueobject
value.membersarray of object

PatchGroupOperationResponseObject​

Type: object

9 properties
NameTypeRequiredDescription
displayNamestring
metaobject
meta.createdstring
meta.locationstring
meta.lastModifiedstring
meta.resourceTypestring
schemasobject
idstring
membersarray of object

ErrorInvalidInput​

Type: object

4 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring
detailstringYes

ErrorUnauthorized​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorGroupNotAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

ErrorNoGroupAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasarray of string
detailstringYes

ErrorGroupAlreadyAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

Was this page helpful?