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/<ORGANIZATION_NAME>/scim2

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

Download the OpenAPI definition (YAML)

Groups Endpoint​

Filter Groups​

GET /Groups

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

  • Scope(Permission) required: internal_group_mgt_view

  • Flow type: Client Credentials OAuth Flow

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_group_mgt_create

  • Flow type: Client Credentials OAuth Flow

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_group_mgt_view

  • Flow type: Client Credentials OAuth Flow

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_group_mgt_view

  • Flow type: Client Credentials OAuth Flow

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_group_mgt_update

  • Flow type: Client Credentials OAuth Flow

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_group_mgt_delete

  • Flow type: Client Credentials OAuth Flow

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_group_mgt_update

  • Flow type: Client Credentials OAuth Flow

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​

GroupsListResponseObject​

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

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

The members of the group. Note that if the group is from a remote user store, a limited number of members will be returned. You can use filters to query remaining users. For example - [email protected]+and+groups+eq+remote_group_01

rolesarray of object

GroupSearchRequestObject​

Type: object

3 properties
NameTypeRequiredDescription
schemasobject
startIndexinteger
filterstring

GroupSearchResponseObject​

Type: object

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

GroupPutResponseObject​

Type: object

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

GroupPutRequestObject​

Type: object

2 properties
NameTypeRequiredDescription
displayNamestring
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

ErrorGroupAlreadyAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

ErrorGroupNotAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
detailstringYes

ErrorNoGroupAvailable​

Type: object

3 properties
NameTypeRequiredDescription
statusstringYes
schemasarray of string
detailstringYes

ErrorUnauthorized​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
schemasstring
detailstring
statusstringYes

ErrorInvalidInput​

Type: object

4 properties
NameTypeRequiredDescription
statusstringYes
schemasstring
scimTypestring
detailstringYes

Was this page helpful?