> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/guides-and-quickstarts/organization-administration/sso-setup/sso-setup-with-jumpcloud.md). Agents can also search and read this documentation through its [MCP server](https://docs.stackai.com/~gitbook/mcp).

# SSO setup with JumpCloud

Use a JumpCloud custom SAML application to sign members in to StackAI. Configure the application with the StackAI values, assign users, and enable SSO with the JumpCloud metadata URL.

## Before you start

Complete the prerequisites in [SSO setup](https://docs.stackai.com/guides-and-quickstarts/organization-administration/sso-setup.md), including the default role, the email domains, and an agreed pilot group. Have your JumpCloud administrator create the application and own its user group assignments. Test one assigned user before expanding the scope.

You need administrative access to the JumpCloud Admin Portal and StackAI SSO settings.

## Create the JumpCloud application

Open **Access → SSO Applications**, select **+ Add New Application**, and choose **Custom Application**.

Select **Manage Single Sign-On (SSO)** and **Configure SSO with SAML**.

Set **Display Label** to `StackAI`. Under **Advanced Settings**, set **SSO IdP URL**, for example `https://sso.jumpcloud.com/saml2/stackai-<yourcompany>`.

JumpCloud does not allow the SSO IdP URL to change after the application is created.

Select **Save Application**, then **Configure Application** to open the **SSO** tab.

## Configure SAML settings

On the **SSO** tab, enter the following values.

| JumpCloud field           | Value                                                       |
| ------------------------- | ----------------------------------------------------------- |
| IdP Entity ID             | A unique value of your own, such as `stackai-<yourcompany>` |
| SP Entity ID              | `https://sb.stack-ai.com/auth/v1/sso/saml/metadata`         |
| ACS URL                   | `https://sb.stack-ai.com/auth/v1/sso/saml/acs`              |
| SAMLSubject NameID        | `email`                                                     |
| SAMLSubject NameID Format | `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`    |
| Signature Algorithm       | `RSA-SHA256`                                                |
| Sign                      | Assertion and Response                                      |
| Declare Redirect Endpoint | Checked                                                     |
| Login URL                 | `https://www.stackai.com/sso`                               |
| Default RelayState        | Leave empty                                                 |

Use the metadata and service URLs shown under StackAI SAML Variables if your deployment uses its own URLs.

{% hint style="warning" %}
**Declare Redirect Endpoint must be checked.** StackAI starts sign-in by redirecting the user to JumpCloud and reads that endpoint from the JumpCloud metadata. Without it, sign-in never reaches JumpCloud.
{% endhint %}

Enter the values themselves, not the field labels. The SP Entity ID and ACS URL must match exactly, with no trailing slash.

Under **Attributes → User Attributes**, add `email` → `email`. You can also add `first_name` → `firstname`, `last_name` → `lastname`, and `user_name` → `username`.

Select **Activate**, or **Save** if the application is already active.

## Assign users

Open the application's **User Groups** tab, select the groups that should access StackAI, and save.

JumpCloud denies access to users who are not in a bound group.

## Enable SSO in StackAI

In JumpCloud, open the application and select **Copy Metadata URL** under **JumpCloud Metadata**.

In StackAI, open **SSO and Provisioning → SSO Setup**. Enter the JumpCloud metadata URL, the default Role, and the authorized Domains, then enable SSO.

Confirm the SSO Enabled status before testing.

## Verify sign-in

In a separate session, an assigned user opens `https://www.stackai.com/sso` and enters their work email.

Complete authentication in JumpCloud, then confirm the destination organization and the member's role.

If the user returns to the StackAI SSO page without seeing JumpCloud, check that **Declare Redirect Endpoint** is selected.

## Important behavior

Sign-in starts from StackAI. The JumpCloud user portal tile is not supported.

StackAI stores the IdP Entity ID when SSO is enabled. If you change the IdP Entity ID or the redirect endpoint later, contact [Support and deployment diagnostics](https://docs.stackai.com/guides-and-quickstarts/personal-settings-and-support/support-and-deployment-diagnostics.md) to reset SSO before enabling it again.

Members who signed in before SSO with Google or email keep their existing account. Their first SSO sign-in links to that account.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/guides-and-quickstarts/organization-administration/sso-setup/sso-setup-with-jumpcloud.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
