SCIM 2.0 Groups API
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
| 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_group_mgt_create -
Flow type: Client Credentials OAuth Flow
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_group_mgt_view -
Flow type: Client Credentials OAuth Flow
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_group_mgt_view -
Flow type: Client Credentials OAuth Flow
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_group_mgt_update -
Flow type: Client Credentials OAuth Flow
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_group_mgt_delete -
Flow type: Client Credentials OAuth Flow
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_group_mgt_update -
Flow type: Client Credentials OAuth Flow
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
GroupsListResponseObject
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 |
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 | 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 - | |
roles | array of object |
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 |
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 |
GroupPutRequestObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
displayName | 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 |
ErrorGroupAlreadyAvailable
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
detail | 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 |
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 |
ErrorInvalidInput
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | |
schemas | string | ||
scimType | string | ||
detail | string | Yes |
Was this page helpful?