Patch SCIM user (partial update / deactivation)
PATCH /api/scim/v2/Users/{id}
Applies SCIM PatchOp Operations to a user belonging to the SCIM token's tenant. The request requires a schemas array and at least one Operations entry; each entry must be an object. The service handles the individual operations. Returns the updated user or 404 when the user is outside the tenant or does not exist.
Authenticate with a SCIM token.
Parameters
idinteger path required
Request body
application/scim+json object
Operationsarray of object requiredItems: at least 1 itemsschemasarray of string required
Generated sample
{
"Operations": [
{}
],
"schemas": [
"string"
]
}Responses
200 User patched
application/json ScimUserResource
activeboolean requiredemailsarray of object requiredEach item:
primaryboolean requiredValue:truevaluestring (email) required
idstring requiredmetaobject requiredcreatedstring (date-time) or null requiredlastModifiedstring (date-time) or null requiredlocationstring (uri) requiredresourceTypestring requiredValue:"User"
nameobject requiredformattedstring required
schemasarray of string requireduserNamestring (email) required
Generated sample
{
"active": true,
"emails": [
{
"primary": true,
"value": "user@example.com"
}
],
"id": "string",
"meta": {
"created": "2026-01-01T00:00:00Z",
"lastModified": "2026-01-01T00:00:00Z",
"location": "https://example.com",
"resourceType": "User"
},
"name": {
"formatted": "string"
},
"schemas": [
"string"
],
"userName": "user@example.com"
}401 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
403 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
404 User was not found in the token's tenant.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
409 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Invalid PatchOp request.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 Error response.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string