Skip to content

SCIM API

GET /scim/v2/ServiceProviderConfig · operation scimServiceProviderConfig

Requires scim. SCIM 2.0 capabilities: patch yes, bulk/sort/etag/changePassword no, filter limited to userName eq and externalId eq.

Authentication: scimBearer

Responses

Status Description Body
200 Service provider configuration application/scim+json: object
401 Missing or invalid provisioning token application/scim+json: ScimError
404 Feature disabled —
503 Storage unavailable —

GET /scim/v2/Users · operation scimListUsers

Requires scim. Lists only users provisioned through SCIM. Any filter other than userName eq or externalId eq is refused with invalidFilter instead of being ignored.

Authentication: scimBearer

Parameters

Name In Type Description
filter query string, max length 300
startIndex query integer, default 1, min 1
count query integer, default 100, min 0, max 200

Responses

Status Description Body
200 SCIM ListResponse application/scim+json: object
400 Unsupported filter or paging value application/scim+json: ScimError
401 Missing or invalid provisioning token —
404 Feature disabled —
503 Storage unavailable —

Response 200 fields:

  • application/scim+json: object
    • schemas (array of string, required)
    • totalResults (integer, required)
    • startIndex (integer, required)
    • itemsPerPage (integer, required)
    • Resources (array of ScimUser, required)

POST /scim/v2/Users · operation scimCreateUser

Requires scim. Creates an active console user with role user and no teams; roles, groups and any other attribute are ignored and never grant access. The console token is random and never returned, so the user signs in through OIDC (externalId = sub).

Authentication: scimBearer

Request body (required)

Responses

Status Description Body
201 Provisioned application/scim+json: ScimUser
400 Invalid userName/externalId or body —
401 Missing or invalid provisioning token —
404 Feature disabled —
409 userName or externalId already provisioned (scimType uniqueness) —
503 Storage unavailable —

GET /scim/v2/Groups · operation scimListGroups

Requires scim_groups (and scim). The IdP manages groups and members; a group grants member access to a team only after a console administrator binds it (PUT /api/v1/admin/scim-groups/{id}/team), never admin access. Members must be users provisioned by SCIM (400 invalidValue otherwise). Concurrent creates of the same group answer one 201 and 409 uniqueness for the rest (ADR 0113). Filters: displayName eq or externalId eq; excludedAttributes=members omits members.

Authentication: scimBearer

Parameters

Name In Type Description
filter query string
startIndex query integer, min 1
count query integer, min 0, max 200
excludedAttributes query string

Responses

Status Description Body
200 SCIM ListResponse of groups —
400 Unsupported filter —
401 Missing or invalid provisioning token —
404 Feature disabled —

POST /scim/v2/Groups · operation scimCreateGroup

Requires scim_groups (and scim). The IdP manages groups and members; a group grants member access to a team only after a console administrator binds it (PUT /api/v1/admin/scim-groups/{id}/team), never admin access. Members must be users provisioned by SCIM (400 invalidValue otherwise). Concurrent creates of the same group answer one 201 and 409 uniqueness for the rest (ADR 0113).

Authentication: scimBearer

Request body (required)

  • application/scim+json: object
    • displayName (string, required, min length 1, max length 255)
    • externalId (string)
    • members (array of object)
      • value (string)

Responses

Status Description Body
201 Created group —
400 Invalid value or member that is not a SCIM user —
401 Missing or invalid provisioning token —
409 displayName or externalId already in use —

GET /scim/v2/Groups/{id} · operation scimGetGroup

Requires scim_groups.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Responses

Status Description Body
200 Group —
401 Missing or invalid provisioning token —
404 Unknown group or feature disabled —

PUT /scim/v2/Groups/{id} · operation scimReplaceGroup

Replaces displayName and members.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Request body (required)

  • application/scim+json: object
    • displayName (string, required)
    • members (array of object)

Responses

Status Description Body
200 Updated group —
400 Invalid value —
404 Unknown group —

DELETE /scim/v2/Groups/{id} · operation scimDeleteGroup

Deletes the group; members lose the team access the group granted.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Responses

Status Description Body
204 Deleted —
404 Unknown group —

PATCH /scim/v2/Groups/{id} · operation scimPatchGroup

Operations as Entra ID, Okta and authentik send them: add/remove/replace on members (also remove with path members[value eq “id”]), replace of displayName (with path or as {displayName} without path). Other paths are refused with invalidPath.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Request body (required)

  • application/scim+json: object
    • Operations (array of object, required, min items 1, max items 100)
      • op (string, required)
      • path (string)
      • value (any)

Responses

Status Description Body
200 Updated group —
400 Invalid operation, path or member —
404 Unknown group —

GET /scim/v2/ResourceTypes · operation scimResourceTypes

User, and Group when scim_groups is on.

Authentication: scimBearer

Responses

Status Description Body
200 SCIM ListResponse of resource types —
401 Missing or invalid provisioning token —

GET /scim/v2/Users/{id} · operation scimGetUser

Requires scim.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Responses

Status Description Body
200 User application/scim+json: ScimUser
401 Missing or invalid provisioning token —
404 Unknown user or feature disabled —
503 Storage unavailable —

PUT /scim/v2/Users/{id} · operation scimReplaceUser

Requires scim. userName and externalId are immutable; only active is applied, with the same rules as PATCH, including reactivation of SCIM disables.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Request body (required)

Responses

Status Description Body
200 Updated user application/scim+json: ScimUser
400 Immutable attribute changed or reactivation —
401 Missing or invalid provisioning token —
404 Unknown user or feature disabled —
503 Storage unavailable —

DELETE /scim/v2/Users/{id} · operation scimDeleteUser

Requires scim. Disables the console user (audit and history are kept); idempotent.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Responses

Status Description Body
204 Disabled —
401 Missing or invalid provisioning token —
404 Unknown user or feature disabled —
503 Storage unavailable —

PATCH /scim/v2/Users/{id} · operation scimPatchUser

Requires scim. Only active is mutable (boolean or the strings True/False). active=false disables the console user: sessions issued before end on the next request and managed keys it owns are refused while it is disabled. active=true reactivates only a user disabled through SCIM, with the same role, teams and keys (Entra ID and Okta reactivate the same resource); keys revoked by an administrator stay revoked and older sessions stay invalid. A user disabled by a console administrator is refused with scimType mutability (ADR 0094). Other attributes are accepted and dropped.

Authentication: scimBearer

Parameters

Name In Type Description
id path string, required

Request body (required)

  • application/scim+json: object
    • schemas (array of string)
    • Operations (array of object, required, min items 1, max items 20)
      • op (string, required) — replace or add
      • path (string)
      • value (any)

Responses

Status Description Body
200 Updated user application/scim+json: ScimUser
400 Unsupported operation, reactivation or invalid value —
401 Missing or invalid provisioning token —
404 Unknown user or feature disabled —
503 Storage unavailable —

m7gtw[email protected]