SCIM setup for Okta, Entra ID and Google

Provision and deprovision members and role groups automatically from Okta or Microsoft Entra ID, and what to do with Google Workspace.

Embed
Preview of the card
<a href="https://lucidace.com/help/scim-setup"><img src="https://lucidace.com/help/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/2f4b888b-c4e6-488b-81bd-6e838fb12d2e/pages/8f9a98bf-1787-46ef-8c13-d900cdc076e0/social-card.svg?v=3e7ae33eec8b" alt="SCIM setup for Okta, Entra ID and Google" width="600" height="315"></a>

Lucida speaks SCIM 2.0 (RFC 7643/7644) at https://<your-host>/v1/scim/v2. Your identity provider creates members, switches them off and keeps role groups in sync. Authentication is a per-organization bearer token (lc_scim_...).

What Lucida supports

  • Users: GET /Users (filter userName eq "x@example.com" only), POST /Users, GET /Users/{id}, PUT and PATCH /Users/{id}, DELETE /Users/{id}.

  • Groups: list, create, get, PUT/PATCH (members), delete. A group whose displayName equals a role name (admin, member, viewer, billing, or a custom role) grants that role to its members. owner is never granted by SCIM. Other groups are plain membership lists.

  • Deprovisioning: active: false (PATCH or PUT) or DELETE removes the membership. The user keeps their other orgs. The last owner is never removed.

  • New users are added as member until a role group says otherwise.

  • Not supported: bulk, sorting, ETags, /Me, filters other than eq, ServiceProviderConfig discovery. Turn those features off in the IdP.

Create the token

The token is shown once; Lucida stores only its hash.

  • In the app: the SCIM tab of organization settings (Generate SCIM token), or

  • with an account key holding scim:write for this org:

POST /v1/orgs/{org_id}/scim/tokens        -> {"id": "...", "token": "lc_scim_..."}
GET  /v1/orgs/{org_id}/scim/tokens        token metadata (created, last used, revoked), never the secret
DELETE /v1/orgs/{org_id}/scim/tokens/{id} revoke

Rotate by issuing a second token, switching the IdP over, then revoking the first.

Okta

  1. Add a SCIM 2.0 Test App (Header Auth) (or your own SCIM app integration) in Applications.

  2. Provisioning > Integration: SCIM connector base URL https://<your-host>/v1/scim/v2; Unique identifier field for users userName; supported actions: Push New Users, Push Profile Updates, Push Groups; Authentication mode HTTP Header, paste the lc_scim_... token. Test Connector Configuration.

  3. Provisioning > To App: enable Create Users, Update User Attributes, Deactivate Users.

  4. Map userName to the user's email. Name your Okta groups after Lucida roles (for example viewer) and use Push Groups to bind them.

Microsoft Entra ID

  1. Enterprise applications > New application > Create your own application (non-gallery).

  2. Provisioning > Automatic: Tenant URL https://<your-host>/v1/scim/v2, Secret token the lc_scim_... token. Test Connection.

  3. Mappings: keep Provision Microsoft Entra ID Users with userPrincipalName (or mail) mapped to userName; remove attributes Lucida does not store. Enable Provision Microsoft Entra ID Groups if you want role groups, named like Lucida roles.

  4. Assign users and groups, set Provisioning Status to On. Entra reconciles with GET /Users?filter=userName eq "...", which is supported.

Google Workspace

Google Workspace does not push to arbitrary SCIM endpoints; it provisions only to its own catalog apps. Use one of these instead:

  • Sign-in: set up SAML or OIDC SSO for your Google domain in the SSO tab of organization settings (or POST /v1/orgs/{org_id}/sso). People are created on first sign-in (just-in-time) with the connection's default role.

  • Provisioning: run a Google Cloud Identity / Workspace sync in your own tooling and call the org admin API with a members:write key (invite, change role, remove). See the Org admin API.

Checks

  • The IdP's Test Connection must succeed; a 401 means a wrong or revoked token.

  • A user "already provisioned" answers 409; reconcile by userName.

  • Every SCIM change is in the audit log with actor kind scim.

Updated