Skip to content

Overview

SCIM 2.0 (RFC 7643/7644), served at /scim/v2, for an identity provider to create, find, update and deprovision the members it provisions. It is its own document, with the application/scim+json media type and error shape, since none match the management API’s.

Authentication is a SCIM token in Authorization: Bearer, never a session cookie or a personal or project token. A SCIM token belongs for life to one auth provider and reaches only that provider’s provisioned members: another provider’s member is not found, and an email one holds is a 409 uniqueness. A token that is missing, malformed, unknown, revoked, expired or of a disabled provider is refused 401 alike, with WWW-Authenticate: Bearer and no scimType (RFC 7644 defines none for it), and a refused bearer counts against the brute-force throttle of the address it comes from, shared with local sign-in, invitation acceptance and password reset.

/Users provisions members and /Groups the groups they are in. A created member is active, belongs to the token’s provider and holds no password; the management API refuses to change a provisioned member’s email, name or status by hand (409 member_provisioned). A member the instance already knows by email, in one of the provider’s domains, who is not an instance admin and not another provider’s, is adopted rather than created. active: false and DELETE deactivate the member in the transaction the write commits in, ending their sessions, personal tokens, invitations and password resets before the response is sent, and active: true reactivates them. Every write is recorded with the SCIM token as actor.

A group belongs to the token’s provider, its displayName and externalId unique among that provider’s groups only, and only the provider’s provisioned members join it. The provider’s group mappings name groups by displayName: every change of a group runs them again, in the same transaction, for each member it adds or removes (for every member when it is renamed or deleted), from the union of the groups the member last claimed signing in through the provider and the provider’s groups they are in. While the provider has group mappings, a write that adds or removes more than 1000 members at once (or renames a group of more than 1000) is 400 tooMany: the mappings run for each member while the write holds every other change of access, so a directory sends such a change in several requests. Deleting a group is never refused.

Bodies are at most 1 MiB. Errors follow RFC 7644 §3.12: application/scim+json, schemas naming urn:ietf:params:scim:api:messages:2.0:Error, status as a string, and scimType for the errors it defines (invalidFilter, invalidPath, invalidSyntax, invalidValue, mutability, uniqueness, noTarget, tooMany).

Information

  • License: Apache-2.0
  • OpenAPI version: 3.1.0

A SCIM token, fn_scim_….

Security scheme type: http