User APIs
The user APIs allow you to manage users in your Omni instance. These APIs follow the SCIM 2.0 standard.
Create a user
Creates a user.
curl 'https://myorg.omniapp.co/api/scim/v2/users' \
--H 'Content-Type: application/json' \
--H 'Authorization: Bearer TOKEN' \
--data '{
"displayName": "Blobby",
"userName": "iamagoodblob@myorg.co",
"urn:omni:params:1.0:UserAttribute": {
"good_blob": "yes"
}
}'
Parameters
Name | Type | Required | Description |
---|---|---|---|
displayName | string | ✓ | The user's display name. For example, Blobby |
userName | string | ✓ | The user's email address. |
urn:omni:params:1.0:UserAttribute | object | An object defining the user's user attributes. Attributes are represented as key/value pairs, where the keys map to the IDs of user attributes (the Reference column in the User attributes page) defined in Omni. |
Returns
Returns a user object and user attributes, if provided.
{
"active": true,
"displayName": "Blobby",
"emails": [
{
"primary": true,
"value": "iamagoodblob@myorg.co"
}
],
"groups": [],
"id": "9e8719d9-276a-4964-9395-a493189a247c",
"meta": {
"created": "2024-12-03T23:13:14.109Z",
"lastModified": "2024-12-03T23:13:14.109Z",
"resourceType": "User"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "iamagoodblob@myorg.co",
"urn:omni:params:1.0:UserAttribute": {
"good_blob": "yes"
}
}
Update a user
Updates the specified user by setting the values of the parameters provided and leaving all other properties of the user unchanged.
curl 'https://myorg.omniapp.co/api/scim/v2/users/9e8719d9-276a-4964-9395-a493189a247c' \
--H 'Content-Type: application/json' \
--H 'Authorization: Bearer TOKEN' \
--data '{
"urn:omni:params:1.0:UserAttribute": {
"good_blob": "sometimes"
}
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | URL parameter | ✓ | The ID of the user to be updated. |
displayName | string | The user's display name. For example, Blobby | |
userName | string | The user's email address. It must match the user's existing email address and cannot be changed. | |
urn:omni:params:1.0:UserAttribute | object | An object defining the user's user attributes. Attributes are represented as key/value pairs, where the keys map to the IDs of user attributes (the Reference column in the User attributes page) defined in Omni. |
Returns
Returns the updated user object associated with the provided user ID.
{
"active": true,
"displayName": "Blobby",
"emails": [
{
"primary": true,
"value": "iamagoodblob@myorg.co"
}
],
"groups": [],
"id": "9e8719d9-276a-4964-9395-a493189a247c",
"meta": {
"created": "2024-12-03T23:13:14.109Z",
"lastModified": "2024-12-03T23:13:14.109Z",
"resourceType": "User"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "iamagoodblob@myorg.co",
"urn:omni:params:1.0:UserAttribute": {
"good_blob": "sometimes"
}
List users
Returns a list of users, sorted by creation time. Refer to the Embed tab to view an example specific to embedding.
- /scim/v2/users
- /scim/v2/embed/users (Embed)
curl 'https://myorg.omniapp.co/api/scim/v2/users' \
--H 'Content-Type: application/json' \
--H 'Authorization: Bearer TOKEN'
curl 'https://myorg.omniapp.co/api/scim/v2/embed/users' \
--H 'Content-Type: application/json' \
--H 'Authorization: Bearer TOKEN'
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | string | A filter of the format userName eq "bob" . | |
count | integer | The number of users to return. Defaults to 100 . | |
startIndex | integer | An integer index that determines the starting point of the sorted result list. Defaults to 1 . |
Returns
Returns a list of user objects, each of which represents a user.
- Non-embed
- Embed
{
"Resources": [
{
"active": true,
"displayName": "Blobby",
"emails": [
{
"primary": true,
"value": "iamagoodblob@myorg.co"
}
],
"groups": [],
"id": "9e8719d9-276a-4964-9395-a493189a247c",
"meta": {
"created": "2024-11-04T16:01:47.015Z",
"lastModified": "2024-11-04T16:05:45.356Z",
"resourceType": "User"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "iamagoodblob@myorg.co"
},
],
"itemsPerPage": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"startIndex": 1,
"totalResults": 1
}
{
"Resources": [
{
"active": true,
"displayName": "Blobby",
"emails": [
{
"primary": true,
"value": "embed-user-Xfcbp2L_HEovLkwren4iWeVnQpyTdJBiDiJCdHfdJh0@myorg.omniapp.co"
}
],
"groups": [
{
"display": "Blobs R Us",
"value": "zMJT9c0x"
}
],
"id": "86b31265-3724-4e6a-ad7a-901aa06af7f3",
"meta": {
"created": "2024-09-11T19:57:37.379Z",
"lastModified": "2024-09-18T21:12:43.594Z",
"resourceType": "User"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "embed-user-Xfcbp2L_HEovLkwren4iWeVnQpyTdJBiDiJCdHfdJh0@myorg.omniapp.co",
"embedEntity": "Blobs R Us",
"externalId": "102"
}
],
"itemsPerPage": 1,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"startIndex": 1,
"totalResults": 1
}
Retrieve a user
Retrieves a user using their unique ID.
curl 'https://myorg.omniapp.co/api/scim/v2/users/9e8719d9-276a-4964-9395-a493189a247c' \
--H 'Content-Type: application/json' \
--H 'Authorization: Bearer TOKEN'
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | URL parameter | ✓ | The ID of the user to be retrieved. |
Returns
Returns the user object associated with the provided user ID.
{
"active": true,
"displayName": "Blobby",
"emails": [
{
"primary": true,
"value": "iamagoodblob@myorg.co"
}
],
"groups": [],
"id": "9e8719d9-276a-4964-9395-a493189a247c",
"meta": {
"created": "2024-12-03T23:13:14.109Z",
"lastModified": "2024-12-03T23:13:14.109Z",
"resourceType": "User"
},
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"userName": "iamagoodblob@myorg.co",
"urn:omni:params:1.0:UserAttribute": {
"good_blob": "yes"
}
}
Delete a user
Deletes the specified user. Refer to the Embed tab to view an example specific to embedding.
- /scim/v2/users/:id
- /scim/v2/embed/users/:id (Embed)
curl DELETE 'https://myorg.omniapp.co/api/scim/v2/users/9e8719d9-276a-4964-9395-a493189a247c' \
--H 'Content-Type: application/json' \
--H 'Authorization: Bearer TOKEN'
curl DELETE 'https://myorg.omniapp.co/api/scim/v2/embed/users/9e8719d9-276a-4964-9395-a493189a247c' \
--H 'Content-Type: application/json' \
--H 'Authorization: Bearer TOKEN'
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | URL parameter | ✓ | The ID of the user to be deleted. |
Returns
Successful requests will return a 204 No Content
status. No response body is expected.