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.
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(filteruserName eq "x@example.com"only),POST /Users,GET /Users/{id},PUTandPATCH /Users/{id},DELETE /Users/{id}.Groups: list, create, get,
PUT/PATCH(members), delete. A group whosedisplayNameequals a role name (admin,member,viewer,billing, or a custom role) grants that role to its members.owneris never granted by SCIM. Other groups are plain membership lists.Deprovisioning:
active: false(PATCH or PUT) orDELETEremoves the membership. The user keeps their other orgs. The last owner is never removed.New users are added as
memberuntil a role group says otherwise.Not supported: bulk, sorting, ETags,
/Me, filters other thaneq,ServiceProviderConfigdiscovery. 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:writefor 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} revokeRotate by issuing a second token, switching the IdP over, then revoking the first.
Okta
Add a SCIM 2.0 Test App (Header Auth) (or your own SCIM app integration) in Applications.
Provisioning > Integration: SCIM connector base URL
https://<your-host>/v1/scim/v2; Unique identifier field for usersuserName; supported actions: Push New Users, Push Profile Updates, Push Groups; Authentication mode HTTP Header, paste thelc_scim_...token. Test Connector Configuration.Provisioning > To App: enable Create Users, Update User Attributes, Deactivate Users.
Map
userNameto the user's email. Name your Okta groups after Lucida roles (for exampleviewer) and use Push Groups to bind them.
Microsoft Entra ID
Enterprise applications > New application > Create your own application (non-gallery).
Provisioning > Automatic: Tenant URL
https://<your-host>/v1/scim/v2, Secret token thelc_scim_...token. Test Connection.Mappings: keep Provision Microsoft Entra ID Users with
userPrincipalName(ormail) mapped touserName; remove attributes Lucida does not store. Enable Provision Microsoft Entra ID Groups if you want role groups, named like Lucida roles.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:writekey (invite, change role, remove). See the Org admin API.
Checks
The IdP's Test Connection must succeed; a
401means a wrong or revoked token.A user "already provisioned" answers
409; reconcile byuserName.Every SCIM change is in the audit log with actor kind
scim.