Skip to content

SCIM provisioning

SCIM (System for Cross-domain Identity Management) lets your identity provider - Okta, Microsoft Entra ID, or Google Workspace - automatically create, update, and remove Sencai organization members whenever you make the equivalent change there, instead of managing membership by hand in Sencai.

Go to Settings → Integrations → SCIM Provisioning (/gravity/settings/integrations/scim). An Owner or Admin can:

  1. Copy the SCIM Base URL shown at the top of the page (https://app.sencai.space/api/v1/scim/v2) - this is what you paste into your identity provider’s SCIM connector configuration.
  2. Select Generate New Token, optionally giving it a label so you can recognize it later (for example, “Okta production”).
  3. Copy the token immediately from the confirmation dialog. It’s shown exactly once - Sencai never displays it again after you close that dialog, and there’s no way to retrieve a lost token, only to revoke it and generate a new one.

Each token expires automatically 90 days after it’s created, and can be revoked at any time from the same page. Use the token as an HTTP Bearer credential (Authorization: Bearer <token>) in your identity provider’s SCIM configuration.

The page includes collapsible setup instructions for Okta, Microsoft Entra ID, and Google Workspace, covering where each provider’s admin console asks for the base URL and bearer token.

A SCIM user maps directly onto a Sencai organization member:

SCIM attributeSencai field
userNameEmail address
name.givenName / name.familyNameFirst name / surname
activeWhether the account is disabled

A user provisioned through SCIM is added to your organization with the Member role - SCIM provisioning always assigns Member, and there’s no attribute or group mapping to a different role (Owner, Admin, Auditor, or Viewer). Change a provisioned user’s role afterward from the organization’s Members tab if they need elevated access - see Roles & permissions.

Your Sencai organization corresponds to a single SCIM group, matching your organization’s overall membership - Sencai doesn’t support provisioning multiple separate groups through SCIM today. Adding a user to that group adds them to your organization (as a Member, same as above); removing them removes their membership.

When your identity provider deactivates or removes a user (typically by setting active: false, matching how most providers signal offboarding through SCIM), that person’s Sencai account is disabled - they can no longer sign in. Their existing organization membership record and any resources they created (instances, runbooks, and similar) are not deleted; a disabled account simply loses access. An Owner or Admin can still see and manage what they owned from the organization’s Members tab and the relevant resource lists.

Most identity providers offer a “Test Connection” step when you save the SCIM configuration (see the per-provider instructions on the SCIM page) - run that first to confirm the base URL and token are both accepted before turning on automatic provisioning.

  • 401 / authentication errors - the token may have been revoked or expired (90-day limit); generate a new one and update your identity provider’s configuration.
  • A newly provisioned user can’t be found in the organization’s Members list - check that your identity provider’s assignment actually completed (some providers queue provisioning on a schedule rather than immediately); the SCIM token page itself doesn’t show a live sync log.
  • A user was removed from your IdP but can still sign in - confirm they were fully deprovisioned/deactivated in your identity provider, not just unassigned from an app tile; Sencai only reacts to the provider’s own SCIM update.