> Documentation index: https://sema4.ai/docs/llms.txt
> Web page: https://sema4.ai/docs/v3/admin/corporate-sso/setup

# Set up and roll out corporate SSO

Connect your company's identity provider to hosted Sema4.ai, test with an existing workspace member, and choose when to require company sign-in.

## Before you start

- Have the setup link from your Sema4.ai representative and sign-in access to the named connection administrator's account.
  To get a link, [request an SSO connection](https://sema4.ai/docs/v3/admin/corporate-sso/request.md).
- Have access to your identity provider's admin console, or work with someone who can register an OIDC web application and assign users to it.
- Choose an existing workspace member to test with.
  Confirm their Sema4.ai account email, workspace, and role so you can verify the upgrade.

## Configure and test the connection

### Open your connection

Open the setup link and sign in with your named administrator account.
If the connection is missing, check the email shown and select **Sign in with a different account** if needed.
Under **Set by Sema4.ai**, check the issuer and exact email domains.
Contact your representative if either needs to change.

_Screenshot: Connection card with A at Redirect URI, B at Enter client ID and secret, and C at the employee sign-in link_

Use **A** when registering the application at your provider, **B** when entering the credentials it gives you, and **C** when inviting someone to test.

### Register the application at your identity provider

1. Copy the **Redirect URI** from **At your identity provider**.
2. In your provider's admin console, register an OIDC web application for Sema4.ai using the authorization code flow and enter that exact redirect URI.
3. Configure the application to send a work address controlled by your directory in the `email` claim of the ID token.
   If that claim lacks an email address, Sema4.ai checks `preferred_username` and then `upn`.
   The domain must match an approved domain exactly, ignoring letter case.
   Use its ASCII form without a trailing dot or spaces.
   For an existing user, the full address must match their Sema4.ai account email, ignoring letter case.
4. Assign the pilot user to the application.
   Copy the **client ID**, generate a **client secret**, and note the **token endpoint authentication method** registered for the client.
   For Microsoft Entra ID, copy the secret's **Value**.

| Provider           | Where to enter the redirect URI                                                                                                                                                                                                  |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Microsoft Entra ID | In the app registration, add a **Web** platform under **Authentication** and enter the **Redirect URI**. [Microsoft registration guide](https://learn.microsoft.com/en-us/graph/auth-register-app-v2)                            |
| Okta               | Create an **OIDC** integration of type **Web Application** and enter the URI under **Sign-in redirect URIs**. [Okta integration guide](https://help.okta.com/oie/en-us/content/topics/apps/apps_app_integration_wizard_oidc.htm) |
| Auth0              | In the **Regular Web Application** settings, enter the URI under **Allowed Callback URLs**. [Auth0 application settings](https://auth0.com/docs/get-started/applications/application-settings)                                   |

### Save the client and turn on sign-in

In Sema4.ai, select **Enter client ID and secret** under **From your identity provider**.
Enter the values from the application you just registered.
Under **How the client sends its secret**, select **Request header** (`client_secret_basic`, the default) or **Request body** (`client_secret_post`) to match your provider.

Under **Groups and scopes**, the default scopes are `openid profile email` and the default groups claim is `groups`.
If you plan to assign roles from groups, enter the ID token claim and any additional scope your provider uses for groups.
Configure the provider to send a list containing only groups intended for Sema4.ai before the first sign-in.
Administrators of every workspace a person belongs to, including workspaces run by another organization, can see those groups, the connection and claim names, and the person's identifier at the provider.

Select **Save**, then **Turn on sign-in**.
Company sign-in is now available alongside the default sign-in.

### Verify the pilot user's existing access

Copy the **Sign-in link** under **Set by Sema4.ai** and send it to the pilot user.
Ask them to open it in a private browser window, sign in with their work account, and open the workspace you identified before setup.
Confirm that their role gives them the access they had before.

If the user reaches a new account or sees none of their usual workspaces, compare the address the provider sent with their existing Sema4.ai account email.
An alias at an approved domain can create a separate account.
Pause the rollout and have your identity administrator correct the address the application sends.
If the pilot sign-in created a separate account, ask your Sema4.ai representative to help resolve the account link before testing again.

## Roll out company sign-in

Assign employees to the application at your provider.
For new employees, a workspace administrator can [invite a teammate](https://sema4.ai/docs/v3/admin/workspace.md#invite-a-teammate) or let eligible employees [join by email domain](https://sema4.ai/docs/v3/admin/workspace.md#join-by-email-domain).
Share the instructions below with employees.

### Sign in with your work account

1. Open [cloud.sema4.ai](https://cloud.sema4.ai) and select **Sign in with company SSO**.
2. Enter your work email on the company sign-in page.
3. Sign in with your company's identity provider to open Sema4.ai.

You can also select **Sign in with company SSO** at your organization's Sema4.ai instance address or use the **Sign-in link** from your administrator.
On a return visit the same browser can offer **Continue with company sign-in**.
Signing out ends the Sema4.ai session and leaves the provider's session open.

If sign-in is refused, retry from the link on the error page.
If it fails again, give the error message to your connection administrator so they can check your application assignment, email address, and approved domain.

### Assign workspace roles from groups (optional)

Have a member of the intended group sign in through the connection.
In **Users → People**, open the groups indicator on their row and check the group identifiers under **Groups at last sign-in**.

Once a member has signed in through the connection, a workspace administrator can open **Users → Sign-in**, check that **Roles from groups** is on, and select **Add group** on the connection.
Choose the group identifier, where the role applies, and the role to grant.
Have the member sign in again through the connection and enter that workspace to verify their access.
Repeat in each workspace that uses group assignments.
Later group membership changes take effect in each workspace when the person first enters it after their next company sign-in.
For detailed role choices, see [Map groups to roles](https://sema4.ai/docs/v3/admin/sso.md#map-groups-to-roles).

### Require corporate SSO for a domain (optional)

As a connection administrator, complete a sign-in through the connection yourself.
Before requiring it, verify that affected employees have access to the OIDC application and that the provider sends the email address each person already uses in Sema4.ai.
Confirm who at your company can contact Sema4.ai support if the provider becomes unavailable.

For the approved domain you are ready to switch, enable **Require corporate SSO**.
This applies to interactive sign-in for accounts at that exact domain across all workspaces.
Anyone with an open session that used the default sign-in will be asked to sign in through an approved corporate provider on their next authenticated request.
Previously issued tool credentials have their own revocation process.

Ask a member at the domain to verify a fresh company sign-in and access to their usual workspace.
If a workspace previously assigned roles from default sign-in groups, have its administrator verify the replacement assignments and remove obsolete mappings when their users have migrated.
A corporate sign-in updates only the roles granted through its own connection.
Removing an old mapping ends the access it granted to everyone who used that mapping.
Repeat for each additional approved domain when its users are ready.

## Manage an existing connection

### Rotate the client secret

Generate a new secret for the same OIDC application.
On the setup page, edit the client, select **Replace secret**, enter the new value, and select **Save**.
Verify a fresh sign-in before retiring the old secret.

### Change the client or provider

You can correct the client ID until the first person signs in through the connection.
After that, ask your representative for a replacement connection if you need a new client ID or identity provider.
While both connections are enabled for the domain, entering an email on the instance sign-in page selects the older connection.
Test the replacement through its own sign-in link with an existing user's work email.
After your representative retires the old connection for that domain, verify the email-based sign-in path in a private window.
Contact your representative to change approved domains or connection administrators.

### Recover access or turn off sign-in

If the provider is unavailable and the domain requires SSO, use your company's established support contact to ask Sema4.ai to restore default sign-in for the affected domain.
If you can still sign in through the provider as a connection administrator, you can lift the requirement yourself.
Test a fresh corporate sign-in before requiring SSO again.

To stop new sign-ins through a connection, select **Turn off sign-in** and confirm.
This also ends browser sessions started through that connection, including your own if you used it.
If you required SSO for a domain, that requirement stays in effect until you or Sema4.ai lift it.
Turning the connection back on lets people sign in again.

If you suspect the provider was compromised, turn off the connection and contact Sema4.ai support to revoke sessions and credentials for the affected accounts or approved domain.
Include the affected domain and the scope of the revocation you need.

### Offboard an employee

1. Remove the person's access to the OIDC application to stop new company sign-ins.
   Existing browser sessions, MCP grants, personal `rcc` credentials, and Slack or Teams links can still be active.
2. Ask an administrator of each workspace to remove the person's membership.
3. To revoke sessions, credentials, and chat links across workspaces, give Sema4.ai support the person's account email and request revocation. [Contact support](mailto:support@sema4.ai)

Before reassigning the email address to someone else, ask Sema4.ai support to disable the former holder's Sema4.ai account and confirm it is disabled.
If you recreate a current or returning employee's account at your provider, give your representative the employee's Sema4.ai account email and ask them to remove the old account link before the employee signs in again.
