Sign-in per deployment

Platform > Organization > Access > Single sign-on. Shown with sample data.
What you set in xpander
Every identity provider fills the same cards on Platform > Organization > Access > Single sign-on:
The Provider picker with Okta picked: the hint under Issuer URL is for Okta. Shown with sample data.
Okta
You create one OIDC app for sign-in and, to list your Okta groups in xpander, one API Services app.Create the sign-in app
- Client authentication: Client secret.
- Login initiated by: Either Okta or App, so the app tile in the Okta dashboard starts a sign-in.
- Initiate login URI: the Initiate login URI from the card. Login flow: Redirect to app to initiate login (OIDC Compliant).
Connect it in xpander
Send the groups claim
groups from Okta’s userinfo answer. Okta group values are group names.- Org authorization server (the issuer is your Okta domain): on the sign-in app’s Sign On tab, under OpenID Connect ID Token, select Edit. Set Groups claim type to Filter and Groups claim filter to
groups, Matches regex,.*. Narrow the filter (for example Starts withxpander-) to send only the groups you link. - Custom authorization server: under Security > API > Authorization Servers, open your server. On Scopes, add a scope named
groups. On Claims, add a claim namedgroups: include in token type ID Token, Always, value type Groups, filter Matches regex.*, include in The following scopes:groups. Check that the server’s access policy rule allows thegroupsscope.
Create the API Services app
- Applications > Create App Integration > API Services, name it (for example
xpander.ai - api), Save. - Okta API Scopes tab: Grant
okta.groups.read. - Admin roles tab: Edit, assign Read-only Administrator, Save. Without it Okta refuses directory reads even with the scope granted.
- General tab, grant types: Client Credentials. Add Token Exchange only if you use agent pre-authentication.
- In xpander, select Edit connection and fill Service app client ID (and Service app client secret if you use token exchange). Save.
- On the Service app card, next to Directory key, select Generate key and copy the public key.
- Back in Okta, on the API Services app: General > Client Credentials > Edit, pick Public key / Private key, Add key, paste the key, Save.
Verify
- Sign out, then sign in with SSO as an assigned user. You land in xpander.
- On Platform > Organization > Members & groups > Groups, open a group’s menu and select Link SSO groups. The Identity provider groups list shows your Okta groups by name.
Microsoft Entra ID
One app registration signs people in and, with an application permission, lists your groups.Register the app
Create a client secret
Add API permissions
Connect it in xpander
Verify
- Sign out, then sign in with SSO as a user in your tenant.
- On Platform > Organization > Members & groups > Groups, open a group’s menu and select Link SSO groups. The Identity provider groups list shows your Entra groups by name.
login.microsoftonline.com for sign-in and to graph.microsoft.com for groups. Without the Graph route, sign-in works and group sync does not; use an identity provider that sends groups in userinfo, such as Keycloak.
Keycloak
Create a client
preferred_username (see Keycloak and preferred_username below).Connect it in xpander
https://idp.example.com/auth/realms/<realm> for a Keycloak under /auth. Add Client ID and Client secret, then Save.Self-hosted: give the install a path to Keycloak
keycloak.internal.<domain> on an internal ingress class, resolved so the issuer hostname still matches. On Air-Gapped, also set the chart values below.Send groups
- Create a
groupsclient scope. Client scopes, Create client scope, namegroups, type Optional. Add a Group Membership mapper: namegroups, Token Claim Namegroups, Full group path off, Add to userinfo on. Then addgroupsto your xpander client as Optional. A mapper on the dedicated scope alone is not enough: Keycloak answerserror=invalid_scope. - Request the scope. Select Edit connection, add
groupsunder Additional sign-in scopes, then Save. - Sign in once, so xpander sees the group values. xpander cannot list Keycloak’s directory, so Link SSO groups lists the groups people have signed in with. Add others by name.
Verify
Air-Gapped chart values
Air-Gapped chart values
client-auth.<domain> and also serves skill OAuth redirects. Google and GitHub social buttons are a separate path (supabase.auth.extraEnv in the chart).Keycloak and preferred_username
Keycloak and preferred_username
Unable to validate email address: invalid format. Map the email onto it:- Client scopes, the client’s dedicated scope, Add mapper, By configuration, User Property.
- Name
preferred_username, Propertyemail, Token Claim Namepreferred_username, type String, “Add to userinfo” on. - Retry the SSO sign-in.
email first, but add the mapper anyway: it works on every release.Running Keycloak yourself
Running Keycloak yourself
kcadm.sh (each call starts a second JVM). Install Keycloak after its database, role and admin secret exist, or the release deadlocks.Link SSO groups
Linking an identity provider group to an xpander group works the same for every provider:- On Platform > Organization > Members & groups > Groups, open the group’s menu and select Link SSO groups.
- In Link SSO groups to your group, tick groups under Identity provider groups (filter with Search identity-provider groups), or type one under Add a group by name or ID and select Add to list.
- Select Save links. The group’s card lists them under Linked SSO groups.

Link SSO groups, before the identity provider has sent any groups: add one by name or ID, then Save links. Shown with sample data.
Roles from your identity provider
Roles can follow your identity provider, so people who join or leave a group there gain or lose a role in xpander without an admin changing it by hand.From groups
- Link the identity provider group to an xpander group, for example
xp-adminsto Admins. - On Platform > Organization > Access > Roles, open the role (Admin, for example). Under Assigned to, pick the group, then Save.

Link SSO groups with groups your identity provider sent, one linked, and the Role picker set to Admin. Shown with sample data.

A member's card: the Role from SSO badge shows the role comes from the linked Engineering group. Shown with sample data.
From a claim
Map a value your identity provider sends, such asxpander-admin, straight to a role:
- Okta: add a custom user attribute (for example
xpanderRole) under Directory > Profile Editor, then a claim on your authorization server with that attribute as its value, returned in userinfo. - Microsoft Entra ID: on the app registration, App roles > Create app role: Allowed member types Users/Groups, Value
xpander-admin. Then in Enterprise applications > your app > Users and groups, assign people or groups to the role. Under API permissions, add the Microsoft Graph Delegated permissionDirectory.Read.All(read-only) and select Grant admin consent. xpander reads app roles from Microsoft Graph with the signed-in person’s token, not from the ID token. Without that permission, no roles come through and nothing changes. In xpander, set Roles claim toroles. - Keycloak: a client role with a mapper that adds it to userinfo.

Roles from your identity provider: the roles claim and one row per value, each giving a role. Shown with sample data.
What stays the same
- Roles an admin gave a person by name are kept. Sync only changes membership of linked groups and the roles your identity provider granted. Someone an admin added by hand to a linked group leaves it, and its role, at their next sign-in.
- If a sign-in carries no groups or role claim at all, nothing is removed.
- The organization always keeps one person with Root access: sync never removes the last one.
- Granting a role through a link or a mapping needs everything that role grants. An Admin cannot hand out Root access.
- Every grant and removal is in the Audit log.
Check members with the identity provider
Check members with the identity provider in the Single sign-on connection card (Every 15 minutes by default, or Every hour, Every 4 hours or Off) asks your identity provider at most this often whether it still accepts a signed-in member. When it refuses, the member is signed out everywhere.- It needs a refresh token from sign-in: add
offline_accessto Additional sign-in scopes, and on Okta turn on the Refresh Token grant. - Keycloak and Entra refuse disabled accounts in a way xpander can read. Okta answers a deactivated user like an expired token, so on Okta use SCIM to remove people right away.
- The same check also re-reads the member’s groups, so group and role changes land within one check interval for people who stay signed in.
Provisioning with SCIM
With SCIM, Okta or Entra creates people in xpander before their first sign-in, moves them between linked groups as you change groups there, and deactivates them the moment you remove them. People still sign in with SSO; SCIM never creates a password.Create the token in xpander
/scim/v2 (https://chat.xpander.ai/scim/v2 on xpander cloud), the same host as the redirect URIs. The token is shown once, so copy it now, then select Done. Later, Rotate token replaces it and Revoke token turns provisioning off. Creating, rotating or revoking the token needs Root access.
Provisioning (SCIM) right after Generate token: the base URL and the new token, shown once. Shown with sample data.
Okta: turn on provisioning
- On the sign-in app’s General tab, under App Settings, select Edit, set Provisioning to SCIM, Save. If the option is missing, create a second app integration (SWA) for provisioning only and use it for the steps below.
- Provisioning tab, Integration, Edit:
- SCIM connector base URL: the base URL from the card.
- Unique identifier field for users:
userName. - Supported provisioning actions: Push New Users, Push Profile Updates, Push Groups.
- Authentication Mode: HTTP Header, with the token as the Bearer token.
- Test Connector Configuration, then Save.
- Provisioning > To App > Edit: turn on Create Users, Update User Attributes and Deactivate Users. Save.
- Push Groups tab: push the groups you linked in xpander.
Microsoft Entra ID: turn on provisioning
- Enterprise applications > the
xpander.aiapplication > Provisioning > Get started (or New configuration). - Provisioning Mode: Automatic. Under Admin Credentials, Tenant URL is the base URL from the card and Secret Token is the token. Test Connection, then Save.
- Under Settings, set Scope to Sync only assigned users and groups, and assign people and groups under Users and groups.
- Set Provisioning Status to On, Save. Entra runs a cycle about every 40 minutes; Provision on demand pushes one person now.
Verify
- A deactivated person is signed out everywhere and their managed API key is retired. Their data stays. The last person with Root access cannot be deactivated.
- Groups move people only into and out of xpander groups an admin linked. Roles come from those groups; SCIM never sets a role itself.
- Rotating the token in xpander stops the old one at once. Paste the new token into your identity provider.
/scim/v2 path to the supabase-kong Service (Air-Gapped access).
/functions/v1/scim/v2. That address no longer answers. Copy the SCIM base URL from the card again and paste it into SCIM connector base URL (Okta) or Tenant URL (Entra). The token stays the same.Agent pre-authentication
Lets an agent act with the asking person’s own permissions where systems allow. At the moment of a call, xpander exchanges the person’s sign-in token (OIDC token exchange, RFC 8693) for a token scoped to the target system. Turn it on only after sign-in works.Troubleshooting
Messages in the Single sign-on connection card
Messages in the Single sign-on connection card
Messages people see when signing in
Messages people see when signing in
Groups and roles
Groups and roles
Self-hosted
Self-hosted

