Skip to main content

Provision users with SCIM (Okta, Microsoft Entra ID)

Velerian speaks SCIM 2.0, the standard your identity provider already uses to push users into the applications you own. Connect Okta, Microsoft Entra ID, or any SCIM 2.0-capable directory to your workspace once, and joiners, movers and leavers flow automatically — a new hire gets a seat, a role change takes effect, and a departure removes access — without anyone re-keying it in Velerian.

What you need

  • A workspace owner to issue the provisioning token. Administrators can see the workspace's tokens; only an owner can issue or revoke one, because the connection can make people owners.
  • Your identity provider's SCIM connector (Okta's Provisioning tab, Entra ID's Provisioning blade, or the equivalent).
  • Optionally, single sign-on already configured for your workspace. SCIM handles who has a seat and which role; sign-in itself still happens interactively — through your single sign-on federation, or the standard sign-in flow if you have not federated.

1. Issue a provisioning token

Each workspace has its own SCIM tokens, and a token can only ever act on the workspace that issued it. A workspace owner mints one from the authenticated API (your session token, not an API key):

curl -X POST "https://app.velerian.ai/api/v2/scim/tokens" \
  -H "Authorization: Bearer <your owner session token>" \
  -H "Content-Type: application/json" \
  -d '{"name": "Okta production"}'

The response is the only place the token's secret ever appears:

FieldWhat it is
tokenThe SCIM bearer token (scim_...) — shown exactly once, paste it into your identity provider now
token_prefixThe token's public identifier, for recognizing it in the token list later
nameThe label you gave it
statusactive until you revoke it
Copy the token now — it is shown exactly once. Velerian keeps only a fingerprint of it, so it can never be shown again. If you lose it, revoke it and mint a new one.

Manage tokens from the same place: GET /api/v2/scim/tokens lists every token's metadata (label, prefix, status, when it was created, last used and revoked — never the secret), and DELETE /api/v2/scim/tokens/{id} revokes one (owners only). A token works only while the owner who issued it is still an owner of the workspace: if their role changes or they leave the workspace, the token stops working, and an owner issues a new one. A revoked token stops working on the very next request that presents it, and every mint and revoke is written to your workspace's audit log.

2. Point your identity provider at Velerian

In your identity provider's SCIM connector, enter:

SettingValue
SCIM base URL (a.k.a. Tenant URL / SCIM connector base URL)https://app.velerian.ai/scim/v2
AuthenticationOAuth Bearer Token (a.k.a. Secret Token / HTTP Header) — the scim_... token from step 1
Unique identifier fielduserName (the user's email address)

Then run your identity provider's connection test. It reads the unauthenticated discovery documents — GET /ServiceProviderConfig, GET /ResourceTypes and GET /Schemas — and makes an authenticated GET /Users call; both must succeed before you assign users.

Users are matched on userName, which is the email address they sign in with. Assign the users or groups you want in Velerian to the application in your identity provider, and provisioning begins.

3. Map groups to Velerian roles

A provisioned user's Velerian role comes from the group names your identity provider sends on the user (groups[] or roles[]). Matching is case-insensitive, and the plural forms work too:

Group name your identity provider sendsVelerian role
owner, ownersowner
admin, admins, administrator, administratorsadmin
supervisor, supervisorssupervisor
member, members, user, usersmember
practitioner, practitionerspractitioner
viewer, viewers, read-only, readonlyviewer
auditor, auditorsauditor

When a user is in several mapped groups, the highest-privilege role wins. A user with no mapped group lands as member — never as an administrative role by accident. Name your identity-provider groups to match (or add a group with one of these names alongside your existing ones); no configuration is needed on the Velerian side.

What happens on each event

  • Joiner — a new user is created and a seat is reserved; the role is taken from the user's groups as above. Your workspace's seat limit is enforced: an over-limit provision is rejected with a SCIM 409 naming the seats in use, and nothing is silently dropped. The user completes onboarding the first time they sign in with that email address.
  • Mover — name, active flag and role changes are applied. A role change takes effect on the user's next request.
  • Leaver — deactivating the user (active: false) or deleting them frees any pending seat and removes their access promptly: their next authenticated request no longer resolves to the workspace, regardless of any session they still hold. Reactivating a deactivated user reserves a seat again (and re-checks the seat limit).

Every provisioning change is written to your workspace's audit log, alongside the changes your own administrators make.

Supported operations

Velerian's SCIM service is a User resource with discovery — exactly what the standard connectors need:

  • Discovery (no token required): GET /ServiceProviderConfig, GET /ResourceTypes, GET /Schemas.
  • Users: GET /Users (with filter=userName eq "...", startIndex and count, up to 200 results per page), GET /Users/{id}, POST /Users, PUT /Users/{id}, PATCH /Users/{id} (including the active: false deprovision your identity provider sends for leavers), DELETE /Users/{id}.
  • Not supported, and advertised as such in the discovery document: bulk operations, sorting, ETags, and password changes over SCIM. There is no separate /Groups resource — group membership arrives on the User resource and is mapped to a role as above.

Errors come back as SCIM error resources (application/scim+json). A missing, malformed or revoked token yields a SCIM 401 with scimType: invalidCredentials; a duplicate userName or an over-limit seat yields a 409.

Verifying it works

Point your terminal at the discovery document — no token needed — and you should see the service description:

curl "https://app.velerian.ai/scim/v2/ServiceProviderConfig"

Then, with your token, list the users your identity provider has pushed so far:

curl "https://app.velerian.ai/scim/v2/Users" \
  -H "Authorization: Bearer scim_..."

Related

  • Signing in through your own identity provider is configured separately from provisioning; a workspace administrator sets it up with the team during onboarding.
  • Roles, seats and the Team & workspace surface: see Getting started with Velerian.
  • Calling the governed-run and evidence APIs from your own code: see the developer quickstart.