# Single sign-on and SCIM

> Connect Google Workspace, Microsoft Entra ID, Okta, any OIDC provider or SAML for sign-in, and keep people in sync with your directory using SCIM.

Source: https://docs.teemli.com/admin/sso-and-scim/

Two features help companies manage sign-in centrally:

- **Single sign-on (SSO)** lets people sign in to Teemli with your company's identity provider (Google Workspace, Microsoft Entra ID, Okta and others) instead of a separate password.
- **SCIM** (System for Cross-domain Identity Management) lets your company directory add people to Teemli when they join, and remove them when they leave, automatically.

Both live in **Admin → Security**, and both need a company email domain (not a personal workspace).

## Set up single sign-on

1. Go to **Admin → Security** → **Set up single sign-on**.
2. Choose your **Identity provider**:
   - **Google Workspace**: create an OAuth client (Web application) in Google Cloud console → APIs & Services → Credentials.
   - **Microsoft Entra ID**: register an app in Entra ID → App registrations, add a client secret, and copy the **Directory (tenant) ID**.
   - **Okta**: create an OIDC Web App integration in Okta Admin → Applications.
   - **Other (OIDC)**: any OpenID Connect provider, such as Auth0, OneLogin or JumpCloud. Enter its **Issuer URL**.
   - **SAML**: give your provider **Teemli's SAML metadata** URL, then paste the provider's metadata URL.
3. Copy the **Redirect URI** Teemli shows into your provider's app.
4. Paste the **Client ID** and **Client secret** (OIDC providers), and optionally a **Button label** for the sign-in page.
5. **Save connection**, then **Turn on single sign-on**.

Client secrets are stored encrypted and never shown again.

### Proving the domain

To stop anyone pointing your domain at their own identity provider, Teemli checks you control the domain: for Okta, other OIDC providers and SAML, [verify the domain with DNS](/admin/domains/) first. Google Workspace and Microsoft Entra ID prove it through their own sign-in.

### What people see

Once SSO is on, the sign-in page asks for the email address first. People with an address at your domain are sent straight to your identity provider.

People who already had a password account are linked on their next sign-in: they confirm linking it to their Teemli account (their email must already be verified). Their agents, chats and settings stay as they are.

**Turn off** single sign-on to go back to email and password sign-in.

## Set up SCIM

1. In **Admin → Security** → **Directory sync (SCIM)**, choose **Create a SCIM token**.
2. Copy the token now: Teemli won't show it again. Copy the **SCIM base URL** too.
3. Paste both into your directory's SCIM provisioning settings (Okta, Entra ID, Google, JumpCloud and others).

Until the first sync, the page says **Waiting for your directory's first sync**.

What syncs:

- **Users:** people your directory adds are invited to Teemli and become active when they first sign in. People it deactivates or deletes are removed, with the same clean-up as [removing someone by hand](/admin/people-and-teams/).
- **Groups:** become Teemli teams, with their members.

People managed by your directory show a **SCIM** badge in **Admin → People**.

**Revoke token** stops syncing until you give your directory a new token. People already in Teemli stay.

## Microsoft Teams and Slack linking

SSO is separate from linking Slack or Teams accounts for AI employees. People link those once, themselves. See [Slack and Teams](/ai-employees/slack-and-teams/).
