DocsPlatform

SCIM provisioning

Create, update and deprovision organization members from your identity provider with SCIM 2.0.

On this page

SCIM 2.0 lets your identity provider create, update and remove members automatically. The SCIM endpoints have been verified in production against the hosted API. They have not been tried with a specific identity provider’s SCIM client such as Okta or Entra, so check how yours maps attributes.

SCIM is separate from single sign-on; you can use either without the other, although together they cover sign-in and offboarding.

Connect

  • Base URL: https://generic-translation-api.jacobfv123.workers.dev/scim/v2/<orgId>
  • Authentication: Authorization: Bearer gt-scim-…

An admin or owner creates the token in the dashboard under Security, or with POST /v1/orgs/:orgId/scim/token. It is shown once and stored only as a hash. Creating a new token replaces the old one; DELETE revokes it. A token works only for its own organization.

What is supported

Resource Operations
ServiceProviderConfig, ResourceTypes, Schemas GET
Users GET (list, with filter and paging), POST, GET /:id, PUT /:id, PATCH /:id, DELETE /:id

Not supported: groups, bulk, sorting, ETags and password changes. Responses use application/scim+json.

User fields. id is the Generic Translation user id and userName is the email address (lower-cased). Also supported: externalId, name.givenName, name.familyName, displayName, emails (the primary one, if userName is not an email) and active.

Role extension. Roles are set with the schema urn:generic-translation:params:scim:schemas:extension:2.0:User and its role attribute, one of viewer, member or admin. If a request has no role, the organization’s SSO defaultRole applies (or member when SSO is not configured). owner cannot be assigned through SCIM, and an existing owner’s role is not changed by it.

{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:User",
    "urn:generic-translation:params:scim:schemas:extension:2.0:User"
  ],
  "userName": "ada@acme.dev",
  "name": { "givenName": "Ada", "familyName": "Lovelace" },
  "active": true,
  "urn:generic-translation:params:scim:schemas:extension:2.0:User": { "role": "member" }
}

Filters. GET /Users?filter=… accepts one clause of the form attribute eq "value" where the attribute is userName, externalId, id or emails.value. Anything else returns 400 with scimType: "invalidFilter". Paging uses startIndex (from 1) and count (0 to 200, default 100).

PATCH. Operations add, replace and remove work on active, userName, externalId, displayName, name, name.givenName, name.familyName, emails and the role (as the full extension path, or as a value object). Unknown attributes are accepted and ignored. A value-only operation (no path) sets each key of the value.

Behavior to know

  • The Users list shows people provisioned through SCIM for that organization, not every member.
  • Creating a user whose email already has a Generic Translation account links that account rather than failing. It returns 409 with scimType: "uniqueness" only if the user is already provisioned into the organization.
  • Deactivating (active: false) or deleting a user removes their membership in the organization and revokes all of their sessions, in every organization they belong to. Deleting also forgets the SCIM record. The Generic Translation account itself is not deleted.
  • The last owner cannot be deprovisioned: the request fails with 400 and scimType: "mutability".
  • Changing userName to an email that belongs to another account fails with 409.

The audit log records scim.token_created, scim.token_revoked, scim.user_created, scim.user_updated, scim.user_deactivated, scim.user_deleted, and member.added, member.role_changed or member.removed with via: "scim".

See the SCIM section of the API reference.

Something wrong or unclear on this page? Open an issue.

Type to search the documentation.