Skip to content

Patch a member's mapped attributes

PATCH
/Users/{id}
curl --request PATCH \
--url https://example.com/scim/v2/Users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/scim+json' \
--data '{ "schemas": [ "example" ], "Operations": [ { "op": "add", "path": "example", "value": "example" } ] }'

add and replace on userName, emails, displayName, name.givenName, name.familyName, externalId and active; remove on displayName and externalId only (userName, emails and active cannot be removed: 400 invalidValue). Attributes the instance does not map (title, phone numbers, the enterprise extension) are ignored, so a patch that also carries active: false still deactivates; id, groups and meta are read only (400 mutability) and a path that does not parse is 400 invalidPath. active: false deactivates in the same transaction, revoking sessions and tokens; active: true reactivates. A taken email is 409 uniqueness.

id
required
string format: uuid

The member’s id, as GET /Users lists it.

Media typeapplication/scim+json
object
schemas
Array<string>
Operations
required
Array<object>
object
op
required
string
Allowed values: add replace remove
path
string
value

The member as it now is.

Media typeapplication/scim+json

A member, as SCIM describes a user.

object
schemas
Array<string>
id
string format: uuid
externalId
string | null
userName
string
name
object
givenName
string
familyName
string
displayName
string
emails
Array<object>
object
value
string
primary
boolean
type
string
active
boolean
groups

The provider’s groups the member is in, by displayName; read only.

Array<object>

A reference to another resource.

object
value
required

The referenced resource’s id.

string
display
string
$ref
string
meta
object
resourceType
string
created
string format: date-time
lastModified
string format: date-time
location
string

Example generated

{
"schemas": [
"example"
],
"externalId": "example",
"userName": "example",
"name": {
"givenName": "example",
"familyName": "example"
},
"displayName": "example",
"emails": [
{
"value": "example",
"primary": true,
"type": "example"
}
],
"active": true,
"meta": {
"resourceType": "example",
"created": "2026-04-15T12:00:00Z",
"lastModified": "2026-04-15T12:00:00Z",
"location": "example"
}
}

The body, the filter or a patch path is malformed (invalidFilter, invalidPath, or no scimType).

Media typeapplication/scim+json
object
schemas
required
Array<string>
status
required
string
scimType
string
detail
string

Example generated

{
"schemas": [
"example"
],
"status": "example",
"scimType": "example",
"detail": "example"
}

No usable SCIM bearer: missing, not fn_scim_…, unknown, revoked, expired or of a disabled provider, with WWW-Authenticate: Bearer and no scimType (RFC 7644 defines none for it). A refused bearer counts against the address’s throttle; an address over it is answered 429.

Media typeapplication/scim+json
object
schemas
required
Array<string>
status
required
string
scimType
string
detail
string

Example generated

{
"schemas": [
"example"
],
"status": "example",
"scimType": "example",
"detail": "example"
}
WWW-Authenticate
string

No member or group of the token’s provider has this id.

Media typeapplication/scim+json
object
schemas
required
Array<string>
status
required
string
scimType
string
detail
string

Example generated

{
"schemas": [
"example"
],
"status": "example",
"scimType": "example",
"detail": "example"
}

Another member already holds this email or this externalId, the email belongs to a member who cannot be adopted, or another group of the provider has this displayName or externalId (uniqueness).

Media typeapplication/scim+json
object
schemas
required
Array<string>
status
required
string
scimType
string
detail
string

Example generated

{
"schemas": [
"example"
],
"status": "example",
"scimType": "example",
"detail": "example"
}