# Set up single sign-on

Connect a SAML or OpenID Connect identity provider, verify your email domain, and require SSO for your team.

Owners connect SAML or OpenID Connect (OIDC) providers in **Settings → Single sign-on**. A connection stays inactive until you test it, turn it on, and attach a verified domain.

<Steps>

1. Click **New connection** and pick **SAML** or **OpenID Connect**. For SAML, you only need your provider's metadata URL.

2. Open **Details** on the connection and copy the listed values into your identity provider.

3. Click **Add domain** for your team's email domain, create the `TXT` record at `_dimmi-verify.<your domain>`, and verify it.

4. Link the connection to that domain, click **Test**, and complete a sign-in at your identity provider.

5. Click **Turn on**.

</Steps>

## Connection statuses

| Status | What it means |
| --- | --- |
| **Draft** | Inactive. Every new connection starts here. |
| **Tested** | An Owner completed a live test sign-in. |
| **On** | Active for anyone signing in with a routed email domain. |
| **Off** | Disabled by an Owner. Turning a connection off also stops requiring it. |

Editing protocol settings or secrets resets a connection back to **Draft** and removes enforcement until you test it again.

## Require single sign-on

Click **Require** to route every teammate under your verified domains to your identity provider, no matter which login button they click.

- **Test required first:** you must have signed in through the connection yourself, or run a test within the last 24 hours.
- **Owner fallback:** active Owners can still sign in another way in case your identity provider goes down.
- **Before deleting:** click **Stop requiring** first before deleting a required connection.

## Add teammates automatically

By default, someone signing in with SSO must already be an active workspace member. Turn on **Add new people** to automatically create a Member account for anyone your identity provider authenticates.

dimmi never reactivates a member who was previously deactivated.

## Verified domains

- **Exclusive ownership:** the first company to verify a domain owns it. Public domains like `gmail.com` cannot be verified.
- **Daily DNS checks:** dimmi rechecks each domain's `TXT` record daily. If it stays missing for 7 days, verification fails, enforcement turns off, and Owners are emailed.
- **Protected while required:** domains linked to a required connection cannot be moved or removed.

## Limits and certificate rotation

- Up to 10 SSO connections and 20 verified domains per company.
- dimmi refreshes SAML **Metadata URL** daily to pick up rotated signing certificates automatically.
- Owners receive email warnings 30, 7, and 1 day before a signing certificate expires.
- SSO connections require dimmi to run over HTTPS.

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
