Need help? Get answers from the docs with Omni's in-app AI! Log in to your Omni instance and open the Omni Agent in the sidebar.
curl --request PATCH \
--url https://{instance}.omniapp.co/api/scim/v2/users/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "replace",
"path": "active",
"value": false
}
]
}
'{
"active": false,
"displayName": "Blob Ross",
"emails": [
{
"primary": true,
"value": "blob.ross@blobsrus.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": "blob.ross@blobsrus.co"
}Updates the specified user by applying a list of SCIM 2.0 patch operations. Attributes not referenced in the request are left unchanged.
To replace the entire user resource in a single request, use the Replace user endpoint.
curl --request PATCH \
--url https://{instance}.omniapp.co/api/scim/v2/users/{userId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "replace",
"path": "active",
"value": false
}
]
}
'{
"active": false,
"displayName": "Blob Ross",
"emails": [
{
"primary": true,
"value": "blob.ross@blobsrus.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": "blob.ross@blobsrus.co"
}Documentation Index
Fetch the complete documentation index at: https://docs.omni.co/llms.txt
Use this file to discover all available pages before exploring further.
Requires an Organization API Key. Personal Access Tokens (PATs) are not supported for this endpoint.
Include in the Authorization header as: Bearer ORGANIZATION_API_KEY
The ID of the user to be updated
The SCIM schema URIs for the request. Must include urn:ietf:params:scim:api:messages:2.0:PatchOp.
urn:ietf:params:scim:api:messages:2.0:PatchOp [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
]The list of patch operations to apply to the user.
1Show child attributes
User updated successfully
Unique identifier for the user
The user's email address
The user's display name
Whether the user is active
The user's email addresses
Show child attributes
User groups that the user belongs to
Show child attributes
Show child attributes
SCIM information about the type of schemas used in the API. For example, urn:ietf:params:scim:schemas:core:2.0:User
User attributes as key/value pairs, where keys map to the IDs of user attributes defined in Omni. This is the Reference column in the User attributes page.
Omni SCIM extension schema containing additional user metadata
Show child attributes
Was this page helpful?