User group APIs
The user group APIs allow you to manage user groups in your Omni instance, including individual memberships. These APIs follow the SCIM 2.0 standard.
To manage model and connection role assignments for user groups, see the User group model role APIs.
Create a group
Creates a user group.
curl -L -X POST 'https://blobsrus.omniapp.co/api/scim/v2/groups' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"displayName": "Blob Sales",
"members": [
{
"value": "9e8719d9-276a-4964-9395-a493189a247c"
}
]
}'
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| displayName | string | Yes ✓ | n/a | The name of the group. For example, |
| members | array of objects | No X | n/a | A list of objects that defines the group's list of members. Each member should be specified as an object. For example: |
Response
201 Created
Successful requests will return a 201 Created status and a response body similar to the following:
{
"displayName": "Blob Sales",
"id": "mEhXj6ZI",
"meta": {
"created": "2024-12-04T00:08:03.250Z",
"lastModified": "2024-12-04T00:08:03.250Z",
"resourceType": "Group"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"members": [
{
"display": "iamagoodblob@blobsrus.co",
"value": "9e8719d9-276a-4964-9395-a493189a247c"
}
]
}
429 Too Many Requests
Results from too many requests in a given time frame. Refer to the Rate limiting documentation for more information.
Update a group
Updates the specified user group by setting the values of the parameters provided and leaving all other properties unchanged.
curl -L -X PUT 'https://blobsrus.omniapp.co/api/scim/v2/groups/mEhXj6ZI' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"displayName": "Blob SEs",
"members": [
{
"display": "iamagoodblob@blobsrus.co",
"value": "9e8719d9-276a-4964-9395-a493189a247c"
}
]
}'
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | URL parameter | Yes ✓ | n/a | The ID of the group to be updated. |
| displayName | string | Yes ✓ | n/a | The name of the group. For example, |
| members | array of objects | Yes ✓ | n/a | A list of users that defines (and will override) the group, each specified as an object like: |
Response
200 OK
Successful requests will return a 200 OK status and a response body similar to the following:
{
"displayName": "Blob SEs",
"id": "mEhXj6ZI",
"meta": {
"created": "2024-12-04T00:08:03.250Z",
"lastModified": "2024-12-04T00:20:47.346Z",
"resourceType": "Group"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"members": [
{
"display": "iamagoodblob@blobsrus.co",
"value": "9e8719d9-276a-4964-9395-a493189a247c"
}
]
}
429 Too Many Requests
Results from too many requests in a given time frame. Refer to the Rate limiting documentation for more information.
List groups
Retrieves a list of user groups, sorted by creation time.
curl -L 'https://blobsrus.omniapp.co/api/scim/v2/groups' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| count | integer | No X | 100 | The number of groups to return. Defaults to |
| startIndex | integer | No X | 1 | An integer index that determines the starting point of the sorted result list. Defaults to |
Response
200 OK
Successful requests will return a 200 OK status and a response body similar to the following:
{
"Resources": [
{
"displayName": "Blob Sales",
"id": "mEhXj6ZI",
"meta": {
"created": "2024-08-29T20:33:36.626Z",
"lastModified": "2024-08-29T20:33:36.626Z",
"resourceType": "Group"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"members": [
{
"display": "iamagoodblob@blobsrus.co",
"value": "9e8719d9-276a-4964-9395-a493189a247c"
}
]
}
],
"itemsPerPage": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"startIndex": 1,
"totalResults": 1
}
429 Too Many Requests
Results from too many requests in a given time frame. Refer to the Rate limiting documentation for more information.
Retrieve a group
Retrieves a user group using its unique ID.
curl -L 'https://blobsrus.omniapp.co/api/scim/v2/groups/mEhXj6ZI' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | URL parameter | Yes ✓ | n/a | The ID of the group to be retrieved. |
Response
200 OK
Successful requests will return a 200 OK status and a response body similar to the following:
{
"displayName": "Blob Sales",
"id": "mEhXj6ZI",
"meta": {
"created": "2024-08-29T20:33:36.626Z",
"lastModified": "2024-08-29T20:33:36.626Z",
"resourceType": "Group"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:Group"
],
"members": [
{
"display": "iamaverygoodblob@blobsrus.co",
"value": "9e8719d9-276a-4964-9395-a493189a247c"
}
]
}
429 Too Many Requests
Results from too many requests in a given time frame. Refer to the Rate limiting documentation for more information.
Delete a group
Deletes the specified user group.
curl -L -X DELETE 'https://blobsrus.omniapp.co/api/scim/v2/groups/mEhXj6ZI' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| id | URL parameter | Yes ✓ | n/a | The ID of the group to be deleted. |
Response
204 No Content
Successful requests will return a 204 No Content status. No response body is expected.
429 Too Many Requests
Results from too many requests in a given time frame. Refer to the Rate limiting documentation for more information.