SCIM 2.0 Groups API
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. | |
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. | |
domain | query | string | The name of the user store where filtering needs to be applied. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
attributes | query | string | SCIM defined attributes parameter. | |
excludedAttributes | query | string | SCIM defined excludedAttribute parameter. |
Request body: application/scim+json
Schema: GroupRequestObject
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
displayName | string | Yes | |
members | array of object |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
startIndex | integer | ||
filter | string |
Responses
| Code | Description | Schema |
|---|---|---|
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
| 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 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
| 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. |
Request body: application/scim+json
Schema: GroupPutRequestObject
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
members | array of object |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique ID of the resource type. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| 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. |
Request body: application/scim+json
Schema: PatchGroupOperationRequestObject
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
Operations | array of GroupItemObj |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Group is updated | PatchGroupOperationResponseObject |
401 | Unauthorized | ErrorUnauthorized |
403 | Forbidden | ErrorForbidden |
404 | Valid group is not found | ErrorNoGroupAvailable |
Schemas
UserResponseObject
Type: object
15 properties
| Name | Type | Required | Description |
|---|---|---|---|
meta | object | Yes | |
meta.created | string | ||
meta.location | string | ||
meta.lastModified | string | ||
meta.resourceType | string | ||
schemas | object | ||
username | string | ||
id | string | ||
name | object | ||
name.givenName | string | ||
name.familyName | string | ||
emails | array of object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User | object | ||
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User.manager | object | ||
roles | object |
GroupRequestObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
displayName | string | Yes | |
members | array of object |
GroupResponseObject
Type: object
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.created | string | ||
meta.location | string | ||
meta.lastModified | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string | ||
members | array of object | ||
roles | array of object |
GroupsListResponseObject
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | array of string | ||
Resources | array of groupOb |
GroupSearchRequestObject
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | object | ||
startIndex | integer | ||
filter | string |
GroupSearchResponseObject
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | ||
startIndex | integer | ||
itemsPerPage | integer | ||
schemas | array of string | ||
Resources | array of groupOb |
groupOb
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.created | string | ||
meta.location | string | ||
meta.lastModified | string | ||
members | array of object | ||
roles | array of object | ||
id | string |
GroupPutRequestObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
members | array of object |
GroupPutResponseObject
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.created | string | ||
meta.location | string | ||
meta.lastModified | string | ||
meta.resourceType | string | ||
schemas | array of string | ||
id | string | ||
members | array of object |
PatchGroupOperationRequestObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
Operations | array of GroupItemObj |
GroupItemObj
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
op | string | Allowed values: | |
value | object | ||
value.members | array of object |
PatchGroupOperationResponseObject
Type: object
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | string | ||
meta | object | ||
meta.created | string | ||
meta.location | string | ||
meta.lastModified | string | ||
meta.resourceType | string | ||
schemas | object | ||
id | string | ||
members | array of object |
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 |
|---|---|---|---|
schemas | string | ||
detail | string | ||
status | string | Yes |
ErrorForbidden
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | string | ||
detail | string | ||
status | string | Yes |
ErrorGroupNotAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
ErrorNoGroupAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | array of string | ||
detail | string | Yes |
ErrorGroupAlreadyAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | string | Yes |
Was this page helpful?