> ## Documentation Index
> Fetch the complete documentation index at: https://chatbase.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign in to Chatbase with single sign-on (SSO)

> Let your team sign in to Chatbase through your company's identity provider with SAML 2.0.

Single sign-on (SSO) lets your team sign in to Chatbase with their company account instead of a Chatbase password. Chatbase supports SAML 2.0, so it works with Okta, Microsoft Entra ID (Azure AD), Google Workspace, and any other SAML identity provider (IdP).

Your team can sign in two ways:

* **From Chatbase**: enter a work email on the Chatbase SSO page and get sent to your IdP.
* **From your IdP**: click the Chatbase tile in your company's app portal and land straight in Chatbase.

> [!NOTE]
>
> SSO is available on the Enterprise plan.

## How SSO works in Chatbase

* **Connected per workspace.** Your IdP is linked to one Chatbase workspace. Everyone who signs in through it lands in that workspace.
* **New users join automatically.** The first time someone signs in through SSO, Chatbase adds them to the workspace with the **Member** role, as long as the workspace has a free seat. Owners can change their role later from **Members**.
* **Your domain sends people to SSO.** Once your email domain is connected, anyone who tries to sign in or sign up with a password using that domain is sent to your IdP instead.
* **Enterprise only.** If the workspace leaves the Enterprise plan, SSO sign-in stops working until it's upgraded again.

## Set up SSO

**1. Contact Chatbase**

Ask your Chatbase account manager to turn on SSO for your workspace. Tell them which IdP you use and which email domains your team signs in with.

**2. Create a SAML app in your IdP**

In your IdP, create a SAML app for Chatbase using the ACS URL and Entity ID that Chatbase gives you. Send the app's SAML metadata (URL or XML) back to Chatbase.

**3. Turn on sign-in from your IdP (optional)**

To let people start from the Chatbase tile in your app portal, set the app's **Default RelayState** to:

```
https://www.chatbase.co/auth/sso/idp
```

The setting is called **Default RelayState** in Okta and **Relay State** in Microsoft Entra ID.

**4. Assign people to the app**

In your IdP, assign the Chatbase app to the people or groups who should have access. They can sign in as soon as Chatbase confirms the connection.

## Sign in from Chatbase

**1. Open the SSO sign-in page**

On the Chatbase sign-in page, select **Sign in with SSO**.

![Chatbase sign-in page with the Sign in with SSO button highlighted](https://mintcdn.com/chatbase/MClcXhfW6kHtPX5b/user-guides/workspace/images/sso/signin.png?fit=max\&auto=format\&n=MClcXhfW6kHtPX5b\&q=85\&s=00021fb922163d6b5849fa26379a4bdc)

**2. Enter your work email**

On the **SSO Sign In** page, enter your **Work Email** and select **Continue with SSO**. Chatbase sends you to your company's IdP.

![SSO Sign In page in Chatbase with a work email entered and the Continue with SSO button highlighted](https://mintcdn.com/chatbase/MClcXhfW6kHtPX5b/user-guides/workspace/images/sso/sso-email.png?fit=max\&auto=format\&n=MClcXhfW6kHtPX5b\&q=85\&s=7b5d3a3e018c481f034742271f58cd92)

**3. Sign in with your IdP**

Sign in with your company account as usual. You're then taken back to Chatbase, signed in to your workspace.

> [!TIP]
>
> You can also type your work email on the regular Chatbase sign-in page. If your domain uses SSO, Chatbase sends you to your IdP automatically.

## Sign in from your IdP

If your admin set the **Default RelayState** during setup, you can start from your company's app portal:

1. Open your IdP's app portal (for example, the Okta dashboard or Microsoft My Apps).
2. Click the **Chatbase** tile.

![A company app portal with the Chatbase tile highlighted](https://mintcdn.com/chatbase/MClcXhfW6kHtPX5b/user-guides/workspace/images/sso/idp-portal.png?fit=max\&auto=format\&n=MClcXhfW6kHtPX5b\&q=85\&s=6c72fd95674438b3b07c1458d835e759)

You land directly in your Chatbase workspace, with no email to type.

![Chatbase Agents page for the Acme Corp workspace on the Enterprise plan after signing in with SSO](https://mintcdn.com/chatbase/MClcXhfW6kHtPX5b/user-guides/workspace/images/sso/dashboard.png?fit=max\&auto=format\&n=MClcXhfW6kHtPX5b\&q=85\&s=0a49de048b6cbab25c4dce7db62cd995)

## Troubleshooting

If SSO sign-in fails, Chatbase takes you back to the **SSO Sign In** page with one of these messages:

| Message | What to do |
| - | - |
| SSO is not configured for your domain. Please contact your administrator. | Your email domain isn't connected to a workspace. Check you're using your work email, or ask your admin to contact Chatbase. |
| SSO is no longer available for this workspace. Please contact your administrator to upgrade to Enterprise. | The workspace isn't on the Enterprise plan. A workspace Owner needs to upgrade it. |
| Unable to add you to the workspace. Please contact your administrator. | The workspace has no free seats. Ask a workspace Owner to free one up. |
| Authentication provider error. Please try again. | Your IdP returned an error. Try again, and check with your IT team if it keeps happening. |
| Failed to create session. Please try again. | The sign-in couldn't be completed. Start again from your IdP or the SSO page. |

> [!NOTE]
>
> When you start from the Chatbase tile, the sign-in has to finish within a couple of minutes. If you see **Failed to create session**, click the tile again.

## Frequently asked questions

> [accordion] Which identity providers does Chatbase support?
>
> Any IdP that supports SAML 2.0, including Okta, Microsoft Entra ID (Azure AD), and Google Workspace.

> [accordion] Which role do new SSO users get?
>
> **Member**. Chatbase adds them to the workspace the first time they sign in. An Owner can change their role from **Members** afterwards.

> [accordion] Can people still sign in with a password?
>
> No, not with an email on your SSO domain. Chatbase sends them to your IdP instead.

> [accordion] Does signing in from the IdP need extra setup?
>
> Yes. Your admin sets the Chatbase app's **Default RelayState** to `https://www.chatbase.co/auth/sso/idp`. Without it, people can still sign in from the Chatbase SSO page.

## Related

> [card] [Two-factor authentication](https://chatbase.co/docs/user-guides/workspace/two-factor-auth.md)
>
> Add a second sign-in step to your account.

> [card] [Manage](https://chatbase.co/docs/user-guides/workspace/manage.md)
>
> Workspace roles, owners, and members.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.