Patch a group
const url = 'https://example.com/scim/v2/Groups/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/scim+json'}, body: '{ "schemas": [ "example" ], "Operations": [ { "op": "add", "path": "example", "value": "example" } ] }'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/scim/v2/Groups/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, replace and remove on members (a list of {value};
remove without a value empties the group), remove on
members[value eq "<id>"], and add or replace on displayName
and externalId, with or without a path. Applied in order as one
change.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The group’s id, as GET /Groups lists it.
Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Responses
Section titled “Responses”The group as it now is.
A group of the token’s provider.
object
A reference to another resource.
object
The referenced resource’s id.
object
Example generated
{ "schemas": [ "example" ], "externalId": "example", "displayName": "example", "members": [ { "value": "example" } ], "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).
object
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.
object
Example generated
{ "schemas": [ "example" ], "status": "example", "scimType": "example", "detail": "example"}Headers
Section titled “Headers”No member or group of the token’s provider has this id.
object
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).
object
Example generated
{ "schemas": [ "example" ], "status": "example", "scimType": "example", "detail": "example"}