Patch a SCIM user

patch/scim/v2/Users/{userId}

Updates one or more attributes of a SCIM user using SCIM PATCH operations.

Request Samples

1

Response Samples

1{
2 "id": "2bca4a63-0892-484a-a9ef-aff7b7f0c795",
3 "userName": "scim-example3@sas.com",
4 "title": "Vice President",
5 "active": false,
6 "externalId": "scim-example3@sas.com",
7 "displayName": "scim example 3",
8 "emails": [
9 {
10 "value": "testuser3@sas.com",
11 "type": "work"
12 }
13 ],
14 "schemas": [
15 "urn:ietf:params:scim:schemas:core:2.0:User"
16 ],
17 "meta": {
18 "resourceType": "User",
19 "created": "2025-10-16T13:46:46.111Z",
20 "lastModified": "2025-10-16T13:56:39.273Z"
21 }
22}

Path Parameters

NameTypeRequiredDescription
userId
string<object-id>
true

Unique identifier for the user resource (SCIM ID).

Header Parameters

NameTypeRequiredDescription
If-Match
string
false

The entity tag (ETag) value of the resource. If provided, the request succeeds only if the current resource version matches this value.

If-Unmodified-Since
string<date-time>
false

A date-time value. If provided, the request succeeds only if the resource has not been modified since the specified date.

Request Body

SCIM 2.0 PatchOp request for user per RFC 7644 Section 3.5.2.

NameTypeRequiredDescription
schemas
array [string]
true

SCIM schemas URN array.

operations
array [object]
true

Array of patch operations to perform.

undefined
false

Responses

StatusMeaningDescription
200OK

The user updated successfully.

Schema
400Bad Request

The request was invalid.

401Unauthorized

Authentication is required.

403Forbidden

The authenticated user does not have sufficient privileges.

Schema
404Not Found

The SCIM user could not be found.

412Precondition Failed

The If-Match or If-Unmodified-Since header condition was not met.