SSO setup
Single sign-on lets members sign in through your organization’s identity provider. Configure the SAML application and StackAI settings, then verify an assigned user’s access.
Before you start
Involve the identity administrator before enabling SSO. The rollout checklist below explains what the team manager supplies, what IT configures, and how to test access without closing the independent administrator session.
You need administrator access in StackAI and permission to configure a SAML application in your identity provider.
Prepare the rollout with your identity administrator
This setup requires access to the organization's SSO settings and an identity administrator who can configure and assign a SAML application. SSO and provisioning are Enterprise features. If the settings are unavailable, ask the organization owner or administrator to check your plan and access before proceeding.
The team manager should provide the organization name, deployment URL, intended email domains, pilot users, and the least-privileged starting role. IT should configure the SAML application, supply its metadata URL, assign the pilot users, and participate in the first sign-in check. Agree who owns recovery before enabling the configuration.
Metadata URL / Metadata Download URL under StackAI SAML Variables
Imports StackAI's service-provider metadata into the identity-provider application. Use the identifier contained in that metadata rather than inventing an audience value.
Assertion Consumer Service URL
Maps to the provider's assertion-consumer, reply, or SAML sign-on destination field. Copy it exactly.
Single Logout Service URL
Uses it for the provider's SAML logout field when configuring that integration.
Metadata URL from the identity provider
Returns this application's identity-provider metadata URL to the StackAI administrator for the SSO Provider form. This is different from StackAI's own metadata URL.
Field labels differ between identity providers. Have IT confirm the mapping against the provider's SAML application configuration before enabling it.
Understand Role, Domains, and provisioning
Role is the default for new organization memberships created through SSO on first sign-in when SCIM is not managing provisioning. It does not replace every existing member's role. Choose the role after reviewing Roles and permissions. Domains determine which email domains are routed through SSO; they do not replace assigning users to the application in the identity provider.
With SCIM enabled, SSO authenticates the user but does not create an unprovisioned organization membership. IT must provision an active membership first. An inactive membership remains denied; another successful identity-provider login does not reactivate it. Use SCIM provisioning to configure that lifecycle.
Metadata URL, Role, and Domains are read-only in the SSO form after enablement. Double-check all three before confirming.
Configure the identity provider
Open SSO and Provisioning → SSO Setup and review StackAI SAML Variables.

Use the metadata and service URLs generated for your deployment.
Configure the SAML application in your identity provider with the StackAI values.

Check the sign-on URL and audience fields for an exact match.
Assign the intended users or groups to the identity-provider application.

Obtain that application's metadata URL for the StackAI configuration.
Enable SSO in StackAI
Enter the IdP Metadata URL, default Role, and authorized Domains in StackAI.

Review the complete configuration before enabling SSO.
Complete enablement and confirm the SSO Enabled status.

Retain an independent administrator session while verifying the sign-in configuration.
Verify sign-in
Start the organization's SSO flow in a separate session with an assigned user.

Complete authentication through the configured identity provider.
After sign-in, confirm the destination organization and the member's role.

Successful identity-provider authentication alone does not confirm the correct workspace assignment.
If the pilot sign-in fails
Keep the independent administrator session open and pause the rollout. Ask IT to check the application's user assignment, exact ACS destination and identifier from the metadata, and the metadata URL supplied to StackAI. If authentication succeeds but the user cannot enter the organization, inspect the member's active status and SCIM provisioning result separately.
If the saved StackAI SSO values are wrong, contact Support and deployment diagnostics from the retained administrator session; the enabled form does not provide an in-place edit for these fields. Include the deployment URL, organization, affected email domain, error text, time and time zone, and which stage failed. Do not send passwords, session tokens, or a full SAML assertion. If all administrators are locked out, have your organization's established support contact raise the same request externally.
Important behavior
Use the exact SAML URLs and identifiers supplied by your deployment. Incorrect values can prevent sign-in.
Keep an administrator session open while you verify the new configuration.
Last updated
Was this helpful?

