Skip to main content
Connect your identity provider (IdP) over OIDC: one app gives you sign-in, group sync, roles and agent pre-authentication. Sign-in is set in Platform > Organization > Access > Single sign-on, and groups in Platform > Organization > Members & groups. Single sign-on is part of the Enterprise plan on xpander cloud and a license feature on self-hosted installs (Licensing). Pick your identity provider and follow its section from top to bottom:

Sign-in per deployment

On xpander cloud and Hybrid, Continue with email on the sign-in page sends an address straight to its identity provider when its domain belongs to an organization that signs in through one. Any other address gets an emailed code of 8 digits. The page answers the same way whether or not the address has an account. SSO on the same page asks for a Work email, and Continue with SSO opens your identity provider directly. Hybrid and Air-Gapped organizations are set up by their own admins. MFA for SSO sign-ins stays in your identity provider. Each person can also add xpander’s own two-step sign-in in Settings > Security. Roles are on Access control.
Access page with Single sign-on, Roles, Check access and API keys tabs and the identity provider settings

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 Identity provider card has a Provider picker (Okta, Microsoft Entra ID, Keycloak or Other). It “Picks the setup hints shown below. Not saved.”: the hints under each field and the Setup guide link follow the provider you pick.
Identity provider card with a Provider picker set to Okta, its note Picks the setup hints shown below. Not saved., and the Issuer URL field with an Okta hint

The Provider picker with Okta picked: the hint under Issuer URL is for Okta. Shown with sample data.

You paste the client secret into the Single sign-on connection card yourself. It is stored encrypted and never shown again, and xpander never asks you to send it. Without the Enterprise plan, the tab shows Single sign-on is an Enterprise feature.

Okta

You create one OIDC app for sign-in and, to list your Okta groups in xpander, one API Services app.
1

Create the sign-in app

In the Okta Admin Console: Applications > Applications > Create App Integration. Pick OIDC - OpenID Connect and Web Application, then Next.Save, then on the app’s General tab:
  • 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).
Copy the Client ID and the Client secret.
2

Connect it in xpander

On Platform > Organization > Access > Single sign-on, select Connect:Select Save.
3

Send the groups claim

xpander reads a claim named 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 with xpander-) 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 named groups: 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 the groups scope.
4

Create the API Services app

Listing your Okta groups in Link SSO groups, and agent token exchange, use a second app:
  1. Applications > Create App Integration > API Services, name it (for example xpander.ai - api), Save.
  2. Okta API Scopes tab: Grant okta.groups.read.
  3. Admin roles tab: Edit, assign Read-only Administrator, Save. Without it Okta refuses directory reads even with the scope granted.
  4. General tab, grant types: Client Credentials. Add Token Exchange only if you use agent pre-authentication.
  5. In xpander, select Edit connection and fill Service app client ID (and Service app client secret if you use token exchange). Save.
  6. On the Service app card, next to Directory key, select Generate key and copy the public key.
  7. Back in Okta, on the API Services app: General > Client Credentials > Edit, pick Public key / Private key, Add key, paste the key, Save.
Okta accepts only key-pair authentication for directory reads. The private key never leaves xpander. Rotate key makes a new pair; directory reads stop until you paste the new public key into Okta.
5

Verify

  1. Sign out, then sign in with SSO as an assigned user. You land in xpander.
  2. 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.
Deployments: on xpander cloud and Hybrid, xpander reaches your Okta tenant over the internet. On Air-Gapped, the install must reach your Okta domain for sign-in. If it cannot reach Okta’s directory API, Link SSO groups still lets you add a group by name.

Microsoft Entra ID

One app registration signs people in and, with an application permission, lists your groups.
1

Register the app

In the Microsoft Entra admin center: Entra ID > App registrations > New registration.Select Register. Then on Authentication, under Web, add the Sign-out redirect URI as a second redirect URI. Leave the implicit grant token checkboxes off.From Overview, copy the Application (client) ID and the Directory (tenant) ID.
2

Create a client secret

Certificates & secrets > Client secrets > New client secret. Pick an expiry (24 months at most), Add, and copy the Value (not the Secret ID). Entra shows it only once.When the secret expires, sign-in stops. Create a new one before then and paste it into the Single sign-on connection card.
3

Add API permissions

API permissions > Add a permission > Microsoft Graph:Select Grant admin consent for your tenant. The status column shows a green check on each row.
4

Connect it in xpander

On Platform > Organization > Access > Single sign-on, select Connect:Select Save. Leave the Service app card empty: on Entra, the sign-in app lists your groups. The Directory key is for Okta only.Entra does not put groups in its userinfo answer, so xpander reads each person’s groups from Microsoft Graph at sign-in, once at least one group is linked. You do not need a groups claim under Token configuration. Entra group values are object IDs; Link SSO groups shows their names.
5

Verify

  1. Sign out, then sign in with SSO as a user in your tenant.
  2. 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.
Deployments: on xpander cloud and Hybrid, nothing extra. On Air-Gapped, the install needs a route to 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

1

Create a client

Also map the email onto preferred_username (see Keycloak and preferred_username below).
2

Connect it in xpander

Select Connect and fill Issuer URL exactly as in the realm’s discovery document, including any context path, for example https://idp.example.com/auth/realms/<realm> for a Keycloak under /auth. Add Client ID and Client secret, then Save.
3

Self-hosted: give the install a path to Keycloak

The token and userinfo calls run from inside the cluster, so Keycloak must be reachable from the pods, not only from browsers. Node egress addresses change, so an IP-restricted public entry refuses those calls even when the browser redirect works. Use a private-zone record and an internal load balancer, for example keycloak.internal.<domain> on an internal ingress class, resolved so the issuer hostname still matches. On Air-Gapped, also set the chart values below.
4

Send groups

  1. Create a groups client scope. Client scopes, Create client scope, name groups, type Optional. Add a Group Membership mapper: name groups, Token Claim Name groups, Full group path off, Add to userinfo on. Then add groups to your xpander client as Optional. A mapper on the dedicated scope alone is not enough: Keycloak answers error=invalid_scope.
  2. Request the scope. Select Edit connection, add groups under Additional sign-in scopes, then Save.
  3. 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.
5

Verify

Sign in with SSO, then open Link SSO groups on any group. Your Keycloak groups appear under Identity provider groups.
The sign-in service is published as 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 sends the account username, so user creation fails with Unable to validate email address: invalid format. Map the email onto it:
  1. Client scopes, the client’s dedicated scope, Add mapper, By configuration, User Property.
  2. Name preferred_username, Property email, Token Claim Name preferred_username, type String, “Add to userinfo” on.
  3. Retry the SSO sign-in.
Or set “Email as username” under Realm settings, Login. Releases from September 2026 on read email first, but add the mapper anyway: it works on every release.
Give the pod at least 2 GiB when you use kcadm.sh (each call starts a second JVM). Install Keycloak after its database, role and admin secret exist, or the release deadlocks.
Linking an identity provider group to an xpander group works the same for every provider:
  1. On Platform > Organization > Members & groups > Groups, open the group’s menu and select Link SSO groups.
  2. 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.
  3. Select Save links. The group’s card lists them under Linked SSO groups.
Members of those identity provider groups join the xpander group at their next sign-in, and leave it when they leave the identity provider group. A linked group follows your identity provider only: people an admin added to it by hand leave it at their next sign-in. Groups with no link do not change.
Members & groups on the Groups tab with the Link SSO groups to Engineering panel open: no groups received yet, an Add a group by name or ID field with Add to list, and Save links

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.
Anyone your identity provider puts in a role-carrying group, or gives a mapped role value, gets that role in xpander. Limit who can change those groups in your identity provider to people you trust with that role.

From groups

  1. Link the identity provider group to an xpander group, for example xp-admins to Admins.
  2. On Platform > Organization > Access > Roles, open the role (Admin, for example). Under Assigned to, pick the group, then Save.
Everyone in the group holds the role from their next sign-in. Take a person out of the identity provider group and the role goes at their next sign-in. Link SSO groups has a Role picker, so you link the group and pick its role in one place: Root access, Admin, Member or No role (members keep the roles they have from elsewhere). Only someone with Root access can give Root access. The button reads Save. Members whose role comes from your identity provider show a Role from SSO badge.
Link SSO groups for Engineering: Okta Engineering ticked, All Staff unticked, an Add a group by name or ID field, a Role picker set to Admin with a warning that anyone the identity provider puts in this group gets this role, and Cancel and 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 card with Email, Role with a Role from SSO badge and the note Admin through Engineering, whatever is picked here., Groups Engineering, and Last activity

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 as xpander-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 permission Directory.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 to roles.
  • Keycloak: a client role with a mapper that adds it to userinfo.
In xpander, on the Single sign-on tab’s Roles from your identity provider card, enter the claim name under Roles claim. Select Add mapping for each value and pick Root access, Admin or Member for it, then select Save configuration. Leave Roles claim empty to turn roles from your identity provider off. You can only map roles you hold yourself.
Roles from your identity provider card with Roles claim set to roles and three mappings: xpander-root gives Root access, xpander-admins gives Admin, xpander-users gives Member, then Add mapping and Save configuration

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.
Deployments: works the same on xpander cloud, Hybrid and Air-Gapped.

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_access to 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.
Deployments: wherever the install can reach your identity provider, on xpander cloud, Hybrid and Air-Gapped.

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.
1

Create the token in xpander

On Platform > Organization > Access > Single sign-on, in the Provisioning (SCIM) card, copy the SCIM base URL and select Generate token. The base URL is your xpander address followed by /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) card with the SCIM base URL, a New token field holding a sample token with a copy button, the note Copy the token now. You won't see it again., and Done

Provisioning (SCIM) right after Generate token: the base URL and the new token, shown once. Shown with sample data.

2

Okta: turn on provisioning

  1. 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.
  2. 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.
  3. Test Connector Configuration, then Save.
  4. Provisioning > To App > Edit: turn on Create Users, Update User Attributes and Deactivate Users. Save.
  5. Push Groups tab: push the groups you linked in xpander.
3

Microsoft Entra ID: turn on provisioning

  1. Enterprise applications > the xpander.ai application > Provisioning > Get started (or New configuration).
  2. 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.
  3. Under Settings, set Scope to Sync only assigned users and groups, and assign people and groups under Users and groups.
  4. Set Provisioning Status to On, Save. Entra runs a cycle about every 40 minutes; Provision on demand pushes one person now.
4

Verify

Assign a new test person in your identity provider. Without signing them in, they appear on Platform > Organization > Members & groups, in the xpander groups linked to their identity provider groups. Unassign them and they are deactivated.
What SCIM does and does not do:
  • 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.
Deployments: the SCIM base URL is on the same address people use to open xpander, so there is nothing extra to publish. On xpander cloud, your identity provider reaches it over the internet. On Hybrid and Air-Gapped, it works when your identity provider can reach your install’s app address. A cloud Okta or Entra cannot push into a closed network, so there sign-in sync and the member check keep access current. If you route the app’s address with your own Ingress instead of the chart’s, also send its /scim/v2 path to the supabase-kong Service (Air-Gapped access).
Set up SCIM before December 2026? Your identity provider may still use a base URL that ends in /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. To sign each person in to an MCP connector through this identity provider, see Per-person sign-in for MCP connectors.

Troubleshooting

These appear under Single sign-on failed.

Next steps

Sign each person in to MCP connectors

Per-person permissions.

Check what the license enables

SSO is a license feature.