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

# Set Up Single Sign-On

> Verify your email domain, connect a SAML or OIDC identity provider, choose provisioning, and require SSO for your organization.

Single sign-on (SSO) lets your team sign in to CloudThinker through your company identity provider (IdP), such as Okta, Microsoft Entra ID or Google Workspace, so you manage access in one place. This page takes you from an unverified domain to a working, enforced SSO connection.

## Prerequisites

* An organization on the **Scale** or **Enterprise** plan. On other plans, **Admin Settings → Identity and access** shows **Unlock SSO with the Scale plan** and an **Upgrade Plan** button. See [Pricing](https://docs.cloudthinker.io/guide/billing/pricing.md).
* The organization **Owner** role. Only Owners can manage SSO; Admins get a permission error. See [Roles and permissions](https://docs.cloudthinker.io/guide/security/roles.md).
* Access to your DNS provider, to add one TXT record.
* Admin access to your identity provider.

## How setup works

**Admin Settings → Identity and access** shows a **Setup progress** checklist with three stages. Each one unlocks the next.

| Stage | What you do | Done when |
| - | - | - |
| 1. **Verify domain** | Prove you own your email domain with a DNS TXT record | The domain shows **Verified** |
| 2. **Configure SSO** | Create a SAML or OIDC connection to your identity provider | The connection status is **Active** |
| 3. **Provisioning** | Choose how user accounts get created | Just-in-time or SCIM is selected |

When all three are done, the checklist collapses into a status bar, for example **SSO Active**, **SAML**, **1 verified domain**, **SSO optional**.

![Admin Settings, Identity and access page with the setup checklist, Domain management card and Single sign-on card](https://mintcdn.com/cloudthinker/x17Tte95w-p1fCkb/images/v2/sso-identity.webp?fit=max\&auto=format\&n=x17Tte95w-p1fCkb\&q=85\&s=0cb6bf1c3da56b8511b0a01438980045)

Identity and access: verify a domain, configure SSO, then choose provisioning

## Verify your domain

Your domain tells CloudThinker which sign-ins to send to your identity provider. Anyone whose email ends in a verified domain is routed to SSO.

**1. Add the domain**

Go to **Admin Settings → Identity and access**. On the **Domain management** card, click **Add domain**. Type your email domain (for example, `example.com`) and click the **+** button.

A domain can belong to only one CloudThinker organization. If another organization already claimed it, you see an error and need to contact that organization's Owner.

**2. Add the DNS TXT record**

In the domains table, click **Verify** next to the domain. The **Verify domain** dialog shows two values. Create a TXT record at your DNS provider with them:

| DNS field | Value |
| - | - |
| Name / Host | `_cloudthinker` (your DNS provider appends `.example.com`) |
| Type | `TXT` |
| Value | The **Record Value** shown in the dialog, for example `cloudthinker-domain-verification=Xy7...` |

**3. Check verification**

Wait for the record to propagate, then click **Check verification**. Propagation is often a few minutes but can take longer, depending on your DNS provider.

**Success state:** the domain shows **Verified** in the table, and the **Setup SSO** button on the **Single sign-on** card is enabled.

CloudThinker checks the record only when you click **Check verification**. It doesn't re-check later, so you can delete the TXT record once the domain is verified.

You can verify more than one domain, for example `example.com` and `example.co.uk`. While the connection is active, you can't remove the last verified domain; deactivate the connection first.

## Create the connection

An organization has one SSO connection, and it serves every verified domain. Pick the protocol your identity provider supports. If it supports both, either works; SAML is the most common choice for enterprise IdPs.

| Protocol | Use it when | Guide |
| - | - | - |
| **SAML 2.0** | Your IdP is Okta, Entra ID, Google Workspace, AWS IAM Identity Center, OneLogin, or another SAML 2.0 provider | [SAML setup](https://docs.cloudthinker.io/guide/security/sso-saml.md) |
| **OpenID Connect (OIDC)** | Your IdP issues OAuth 2.0 clients and publishes an OIDC discovery document | [OIDC setup](https://docs.cloudthinker.io/guide/security/sso-oidc.md) |

**1. Start the wizard**

On the **Single sign-on** card, click **Setup SSO**. Choose **SAML 2.0** or **OpenID Connect (OIDC)** and click **Next**.

**2. Follow your provider's guide**

Open the SAML or OIDC guide above and complete the steps for your provider, then click **Create Connection**.

**Success state:** the dialog shows **SSO Connection Created**. The connection is active right away, and sign-in through SSO is available but not yet required.

**3. Run the connection test**

On the **Single sign-on** card, click **Manage**. On the **Overview** tab, under **Connection test**, click **Run connection test**.

The test checks your configuration, not a full sign-in. For SAML it checks the IdP Entity ID, SSO URL and certificate. For OIDC it checks that the discovery document is reachable, the issuer matches, the required endpoints exist, and the signing keys are reachable.

**Success state:** **All checks passed**. If you see **Some checks failed**, the failing check and an error message are listed; fix the value on the **Configuration** tab and click **Save Changes**.

**4. Sign in through SSO**

In a private browser window, open the CloudThinker sign-in page at `https://app.cloudthinker.io/auth/login`, enter an email on your verified domain, and click **Continue with SSO**. You can also click **Sign in with SSO** and enter your **Work email**.

**Success state:** your IdP's sign-in page opens, and after you sign in you land back in CloudThinker with your name shown.

> [!NOTE]
>
> As soon as a connection is active, new people on your verified domain can't create an account with Google or GitHub sign-in. They're told "Your organization uses SSO. Please sign in with SSO." Existing users can still pick **Use an email code instead** on the SSO screen until you require SSO.
>
> People who already have a CloudThinker account keep it. Their first SSO sign-in matches the account by email and links it to your IdP, so no duplicate is created.

## Choose how users are provisioned

Provisioning is how a CloudThinker account gets created for someone in your company. The **Provisioning & directory sync** card appears once the connection is active.

| Mode | What happens | Pick it when |
| - | - | - |
| **Manual** | No accounts are created automatically. You invite each person. | You want to approve every member by hand |
| **Just-in-time** | An account is created the first time someone signs in through SSO. This is the default for new connections. | Anyone your IdP lets in should get access |
| **SCIM** | Your IdP creates, updates and deactivates users and groups automatically | You want joiners and leavers handled by your directory. See [SCIM provisioning](https://docs.cloudthinker.io/guide/security/scim.md) |

For **Just-in-time** and **SCIM**, also set:

* **Auto-assigned organization role**: **Viewer** (default), **Developer** or **Admin**. Start with Viewer and promote people later.
* **Auto-assigned workspaces**: the workspaces new users join automatically. The default is your organization's default workspace. See [Workspaces](https://docs.cloudthinker.io/guide/workspaces.md).

## Require SSO

With SSO optional, people on your domain can still sign in with an email code. Turning on **Require SSO** removes that option.

**1. Confirm SSO works for you**

Complete the sign-in test above with your own account first.

**2. Turn on Require SSO**

On the **Single sign-on** card, turn on **Require SSO**.

**Success state:** the status bar shows **SSO required**. Users on your verified domains must sign in through your identity provider. Other sign-in methods return "Your organization requires SSO. Please sign in with SSO."

**Require SSO** is checked at sign-in. It doesn't sign out anyone who is already signed in; they move to SSO the next time they sign in. The toggle only shows while the connection is **Active**.

Requiring SSO also changes invitations: you can only invite emails on a verified domain. With **SCIM** selected, manual invitations are turned off, and you manage people in your IdP.

### If your IdP is unavailable

Each organization has exactly one Owner, and the Owner is exempt from **Require SSO**, so an IdP outage or an expired certificate doesn't lock you out. The Owner enters their email on the sign-in page, then picks **Use an email code instead** on the SSO screen. Everyone else waits until the IdP is back, or until the Owner turns off **Require SSO** on the **Single sign-on** card.

> [!WARNING]
>
> Before you turn on **Require SSO**, make sure the Owner's email address receives mail outside your IdP, for example a monitored shared mailbox. That inbox is your way back in.

## Manage or remove the connection

Click **Manage** on the **Single sign-on** card. The dialog has two tabs:

| Tab | What you can do |
| - | - |
| **Overview** | See **Status**, **Protocol**, **Verified domains** and **SCIM**. **Activate**, **Deactivate** or **Delete** the connection, and run the connection test. |
| **Configuration** | Edit IdP values, for example a rotated certificate or a new client secret, then click **Save Changes**. For SAML, this tab also shows the **SP Metadata URL**. |

| Status | How it gets there | What users see |
| - | - | - |
| **Active** | Set automatically when you create a valid connection on a verified domain, or by clicking **Activate** | Sign-ins on your verified domains go to your IdP. **Require SSO** applies if it's on. |
| **Inactive** | You click **Deactivate** | SSO isn't used. People sign in with an email code, Google or GitHub, and **Require SSO** doesn't apply. Your settings are kept, so **Activate** turns it back on. |
| **Testing** | Not set from the dashboard | Behaves like **Active** |

**Delete** is permanent and does more than deactivating:

* **Require SSO** goes away with the connection, and users fall back to email-code sign-in.
* SCIM is removed: the token stops working, and group mappings and sync logs are deleted. Turn off provisioning in your IdP too.
* Member accounts and their roles stay, including people created by just-in-time or SCIM provisioning.

To pause SSO, deactivate instead.

## Troubleshooting

> [accordion] Setup SSO is disabled
>
> The card reads "Verify at least one domain before configuring SSO." Open **Verify** on the domain and confirm your TXT record name is `_cloudthinker` and its value matches the **Record Value** exactly. Some DNS providers add the domain for you, so a name of `_cloudthinker.example.com` can turn into `_cloudthinker.example.com.example.com`. Then click **Check verification** again.

> [accordion] Identity and access shows Unlock SSO with the Scale plan
>
> Your organization's plan doesn't include SSO. Click **Upgrade Plan** or see [Manage your subscription](https://docs.cloudthinker.io/guide/billing/subscription.md).

> [accordion] 'Only organization owners can manage SSO settings'
>
> You're signed in as an Admin or lower. Ask an organization Owner to make the change, or to [change your role](https://docs.cloudthinker.io/guide/security/roles.md).

> [accordion] A user can't sign in after you required SSO
>
> Check that the user is assigned to the CloudThinker app in your identity provider. If they still fail, an Owner can turn off **Require SSO** while you fix the IdP side.

> [accordion] A user still signs in with an email code
>
> Either **Require SSO** is off, the user's email isn't on a verified domain, or the user is an organization Owner, who is exempt by design.

> [accordion] Names show as email addresses
>
> Your identity provider isn't sending first and last name. Fix the attribute mapping in the [SAML](https://docs.cloudthinker.io/guide/security/sso-saml.md) or [OIDC](https://docs.cloudthinker.io/guide/security/sso-oidc.md) guide.

> [accordion] Finding out why an SSO sign-in failed
>
> Sign-ins aren't recorded in [audit logs](https://docs.cloudthinker.io/guide/security/audit-logs.md), so start from the message the user sees on the CloudThinker sign-in page:
>
> | Message | Cause |
> | - | - |
> | "SSO login is not available for this domain" | The email's domain isn't verified, or the connection is **Inactive** |
> | "No account found. Contact your administrator for access." | Provisioning is **Manual** or **SCIM**, and the person has no account or invitation |
> | "You are not a member of this organization. Please ask your administrator to invite you." | The person has a CloudThinker account but isn't in your organization, and just-in-time provisioning is off |
> | "This organization has reached its seat limit." | A pending invitation can't be accepted because every seat is taken |
> | "SSO authentication did not provide an email address" | Your IdP isn't sending an email. Fix the attribute mapping |
> | "SSO authentication failed. Please try again or contact your administrator." | CloudThinker rejected the SAML or OIDC response, for example an unsigned or encrypted assertion, a wrong certificate or clock drift. See the [SAML](https://docs.cloudthinker.io/guide/security/sso-saml.md#troubleshooting) or [OIDC](https://docs.cloudthinker.io/guide/security/sso-oidc.md#troubleshooting) troubleshooting |

## Next steps

> [card] [SAML setup](https://docs.cloudthinker.io/guide/security/sso-saml.md)
>
> Step-by-step SAML configuration for Okta, Entra ID, Google Workspace and more

> [card] [OIDC setup](https://docs.cloudthinker.io/guide/security/sso-oidc.md)
>
> Step-by-step OIDC configuration for Google, Entra ID, Okta and others

> [card] [SCIM provisioning](https://docs.cloudthinker.io/guide/security/scim.md)
>
> Let your directory add and remove users automatically

> [card] [Roles and permissions](https://docs.cloudthinker.io/guide/security/roles.md)
>
> Decide what auto-provisioned users can do


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