#### Teams

# SSO

## Overview

SAML 2.0 SSO is available at no additional cost on Teams and Enterprise plans. Use your existing identity provider (IdP) to authenticate team members without separate Grok Build accounts.

> [!NOTE]
>
> This page covers team-level SSO in Team Settings. Use it on a Teams plan, or
> on a team that still has its own identity provider. Enterprise org admins
> configure SSO in the Organization's Settings. See
> [Organizations](/build/agents-window/enterprise/organizations#identity-model) and
> [Identity and access management](/build/agents-window/enterprise/identity-and-access-management#single-sign-on-sso-and-saml).

## Prerequisites

* Grok Build Teams plan, or a team that still uses team-level SSO
* Admin access to your identity provider (e.g., Okta)
* Admin access to your Grok Build team

## Configuration steps

1. **Sign in to your Grok Build account**

   Navigate to the [Single Sign-On (SSO) settings](https://grok.com/dashboard/workspace-settings?section=single-sign-on) with a team admin account.

2. **Locate the SSO configuration**

   Find the "Single Sign-On (SSO)" section and expand it.

3. **Begin the setup process**

   Click "Configure" next to "SSO-Provider Connection Settings" to start SSO setup and follow the wizard.

4. **Configure your identity provider**

   In your identity provider (e.g., Okta):

   * Create new SAML application
   * Configure SAML settings using Grok Build's information
   * Set up Just-in-Time (JIT) provisioning

5. **Verify domain**

   Click "Configure" next to "Domain Verification Settings" to verify your users' domain.

## View your SSO configuration

Team admins can review a team-level SSO connection and its domains at any time:

1. Go to [Single Sign-On (SSO) settings](https://grok.com/dashboard/workspace-settings?section=single-sign-on) with a team admin account.
2. Click "Configure" next to "SSO-Provider Connection Settings" to view the provider connection details.
3. Click "Configure" next to "Domain Verification Settings" to view or manage verified domains.

These settings are for team-level SSO. Enterprise org admins review org-level SSO in the Organization's Settings. See [Organizations](/build/agents-window/enterprise/organizations#identity-model).

### Identity provider setup guides

For provider-specific setup instructions:

[Identity Provider Guides](https://workos.com/docs/integrations) — Setup instructions for Okta, Azure AD, Google Workspace, and more.

## Additional settings

Once domain verification and the SSO provider connection are active, users on that domain are required to sign in with SSO. There is no separate enforcement toggle.

* New users auto-enroll when signing in through SSO
* Handle user management through your identity provider

## Multiple domains

To handle multiple domains in your organization:

1. **Verify each domain separately** in Grok Build through the domain verification settings
2. **Configure each domain** in your identity provider
3. Each domain needs to go through the verification process independently

## Troubleshooting

### User is not assigned to this application

If Microsoft Entra ID returns `AADSTS50105`, or another identity provider returns **User is not assigned to this application**, Grok Build cannot grant access. The identity provider is blocking sign-in because the user is not assigned to the Grok Build enterprise app.

Ask an admin in your identity provider to assign the user directly, or as a direct member of an assigned group. Nested groups often fail: membership in a group that sits under an assigned group is not enough on many providers, including Microsoft Entra ID.

After the assignment is saved, wait a few minutes for it to propagate, then have the user sign in again.

See [SSO and authentication](/build/agents-window/help/security-and-privacy/sso#why-do-i-see-aadsts50105-or-user-is-not-assigned-to-this-application) for the member-facing version of this error.

### Other issues

* Verify the domain is verified in Grok Build
* Ensure SAML attributes are properly mapped
* Confirm the SSO connection is active and the domain is verified
* Match first and last names between identity provider and Grok Build
* Check provider-specific guides above
* Visit the [SSO help center](/build/agents-window/help/security-and-privacy/sso) if issues persist
