- SSO (SAML/OIDC) answers “can this person log in?”
- SCIM 2.0 answers “should this person have Gradial access, what role should they have, and which workspaces should they see?”
How to Enable SCIM
SCIM requires two gates:- The SCIM provisioning feature must be enabled for your organization.
- An organization owner must turn on SCIM Provisioning in organization settings.
- Toggle SCIM provisioning on or off (organization owners only)
- Copy the SCIM base URL
- Create and revoke SCIM bearer tokens
- Add SCIM group → workspace mappings (after groups have been provisioned)
SCIM Tokens
Gradial issues a dedicated bearer token for SCIM. Treat it like any other sensitive credential.- Prefix:
gxs_ - Scope: exactly one organization — a token cannot reach any other organization
- Visibility: shown once at creation, so copy it immediately
- Expiration options: 30, 60, 90, 180, 365 days, or no expiration
- Usage: sent in the
Authorization: Bearer <gxs_...>header
Token rotation
Create a new token
Update your IdP
Revoke the old token
Base URL and Discovery
Base URL:https://<your-gradial-host>/api/scim/v2
Discovery endpoints are served without authentication, because IdP connector setup may probe them before sending a bearer token:
GET /ServiceProviderConfigGET /SchemasGET /ResourceTypes
Supported Endpoints
Users
userName eq "..."externalId eq "..."id eq "..."
Groups
displayName eq "..."externalId eq "..."id eq "..."
User Provisioning Behavior
Creating users (POST /Users)
- A new email creates a Gradial user, a SCIM link, and organization membership.
- If the email already belongs to a Gradial user in another organization, that existing global identity is linked into this organization. Access in other organizations is not changed.
- If a SCIM link for that user is inactive, the user is reactivated.
- If an active SCIM user already exists in the same organization, the request returns a uniqueness conflict.
userNameis expected to be an email. IfuserNameis absent, Gradial can useemails[].value.
Updating users (PATCH /Users/{id})
Supported attributes:
activeexternalIduserName,displayName,name.givenName,name.familyName,name.formatted,emails- Role attributes (see Organization role sync)
- String booleans such as
"True"/"False"are accepted, since some IdPs send these. - PATCH operation names are case-insensitive (
Add,Replace,Remove). - Unknown attributes are ignored, so IdP extension attributes do not fail the whole sync.
- Password updates are rejected, not silently accepted.
Profile ownership
Gradial user profiles are global across organizations. For a user who already exists in Gradial, SCIM does not rewrite shared global profile fields (such as name or email), because one customer’s IdP should not change how that user appears in every other organization. In practice this means SCIM can set a user’s name only on first provisioning. SCIM manages organization-scoped state only: the SCIM external ID, active/deprovisioned state, organization membership, and supported roles.Deprovisioning users
Deprovisioning can be triggered byPATCH active=false (the common Entra path) or by DELETE /Users/{id}. Both have the same effect:
- The user’s organization membership is removed.
- The user’s SCIM group memberships are removed.
- The user’s non-owner workspace memberships (in that organization) are removed.
- The user’s sessions scoped to that organization are cleared.
- The user identity and SCIM link are preserved for audit, so the user can later be reprovisioned with the same Gradial identity.
Organization Role Sync
SCIM can set the organization role of SCIM-managed users toadmin, member, or viewer. owner is not SCIM-manageable: assigning it is rejected with a conflict, and owners always remain Gradial-managed.
Roles are read from two places:
- The standard SCIM
rolesarray, especiallyroles[primary eq "True"].value - Gradial’s extension schema:
urn:gradial:params:scim:schemas:extension:organization-role:2.0:UserwithorganizationRole
roles wins when present and parseable. Unknown role values are ignored.
IdP-managed non-owner roles cannot be manually edited in Gradial — the People page shows these rows with disabled role controls.
Workspace Access Through Group Mappings
SCIM does not let the IdP directly create arbitrary Gradial groups or workspaces. Instead, access flows through admin-managed mappings:- The IdP provisions SCIM group identities and memberships.
- A Gradial admin maps a provisioned IdP group to a Gradial workspace (and a workspace role) under Settings → Developer → SCIM Group Mappings.
- Gradial reconciles workspace membership from the mapping and the latest group membership facts.
- IdP Group — a previously provisioned SCIM group
- Workspace — an existing workspace, or “create or reuse a workspace from this IdP group”
- Workspace role —
viewer,member, oradmin
Workspace role rules
owneris not a SCIM-managed workspace role. Workspace owner rows are always Gradial-managed and are never inserted over, updated, downgraded, or deleted by SCIM.- Non-owner workspace membership and roles are IdP-managed for mapped workspaces.
- One IdP group maps to one workspace; multiple IdP groups can map to the same workspace.
- If a user is in multiple mapped groups for the same workspace, the highest role wins:
admin > member > viewer. - If a user is removed from an admin group but remains in a member/viewer group for the same workspace, Gradial downgrades rather than revokes.
- If a user is absent from every mapped group for that workspace, Gradial removes their non-owner workspace membership.
Mapping lifecycle
- Creating a mapping immediately reconciles existing SCIM group membership.
- Deleting a mapping reconciles the affected workspace and can remove access for users whose only path was that mapping. The workspace itself is not deleted.
- Re-adding a mapping can reuse a workspace previously associated with that IdP group.
- The mapping UI shows an impact preview before saving (grants, revokes, and role changes).
Manual Invites in SCIM-Managed Organizations
When SCIM provisioning is enabled for an organization:- Local email/password signup and manual invites cannot create or grant initial non-owner access in that organization.
- Owners are still managed in Gradial.
- The People page indicates which members are IdP-provisioned versus locally provisioned, so admins can verify that all non-owner access is coming through SCIM.
Microsoft Entra ID Setup
Gradial’s SCIM implementation is currently validated for Microsoft Entra ID only (see Current limitations). The steps below are the Entra-specific setup.Enable SCIM in Gradial
Configure Entra admin credentials
- Provisioning Mode: Automatic
- Tenant URL:
https://<your-gradial-host>/api/scim/v2 - Secret Token: your
gxs_...token
Configure user mappings
externalId, which must be mapped to a stable unique Entra identifier (commonly objectId). userName should be the user’s email and should match the email used for SSO.Enable group provisioning
Optional: sync organization roles
admin, member, or viewer.Simplest option: define Entra app-role values exactly as admin, member, and viewer, then map:- Mapping type: Expression
- Expression:
SingleAppRoleAssignment([appRoleAssignments]) - Target attribute:
roles[primary eq "True"].value - Apply this mapping: Always
Switch comparisons are case-sensitive. Assign only one app role per user for this mapping — SingleAppRoleAssignment is a single-role helper.Assign users and groups
Map groups to workspaces in Gradial
viewer, member, or admin.Troubleshooting
"No groups available" in the Gradial mapping picker
"No groups available" in the Gradial mapping picker
- Confirm SCIM provisioning is enabled in Gradial.
- Confirm the SCIM token and base URL in Entra match the intended Gradial organization.
- Confirm the IdP group is assigned to the Entra enterprise application.
- Confirm Entra provisioning has Provision Microsoft Entra ID Groups enabled. This is a common root cause: Entra provisions users but never sends group calls.
- Use Provision on demand for the group, or restart provisioning.
- Wait for the next Entra polling cycle if not forcing a sync.
- Confirm the group is not already mapped — already-mapped groups are removed from the available-groups picker.
Unprovisioned users cannot log in
Unprovisioned users cannot log in
SSO sign-in fails with "Sign-In Couldn't Be Completed" for some users
SSO sign-in fails with "Sign-In Couldn't Be Completed" for some users
email claim when the user’s mail attribute is populated — it does not synthesize one from the user principal name (UPN), and adding email to the app registration’s optional claims does not fix this on its own. Accounts without mail (commonly service, shared, or non-mailbox accounts) therefore see this error, while users with a normal mailbox sign in normally — which is why it often affects only a subset of users.Fix: have your Entra admin populate the mail attribute on the affected accounts.Prevention: before enabling Gradial SSO, have your Entra admin verify that every user who will sign in has a populated mail attribute. Catching mailless accounts during rollout planning is much cleaner than after a user hits the error page.Deprovisioned user still appears
Deprovisioned user still appears
Entra quarantined the provisioning job
Entra quarantined the provisioning job
Current Limitations
- Microsoft Entra ID is the only IdP currently validated end-to-end for customer rollout. The implementation follows the SCIM 2.0 standard and is designed to be largely IdP-agnostic (case-insensitive PATCH operations, string booleans, tolerated unknown extension attributes); support for additional IdPs (Okta, Ping, etc.) is on the roadmap and will be documented here when validated.
- SCIM cannot assign or remove owners, at either the organization or workspace level.
- One IdP group maps to one workspace — multiple groups can map to one workspace.
- SCIM can set a user’s name only on first provisioning, because Gradial profiles are global across organizations. If users were synced before a name mapping was added, their names must be corrected manually in Gradial.
Related
- Single Sign-On (SSO) → — configuring authentication for your identity provider
- Roles & Permissions → — the role model SCIM syncs into
- Adding Team Members → — manual invites and the People page