# Enterprise Single Sign-On with Agility

> Source: https://agilitycms.com/docs/owners-admins/enterprise-sso-with-agility-cms

Enterprise single sign-on (SSO) lets your people sign in to Agility through your own identity provider. They use their work account, nobody has a separate Agility password, and your MFA, device and network policies apply to every sign-in.

> [!NOTE]
> Enterprise SSO is available on Enterprise plans. To set it up, contact your customer success representative or [support@agilitycms.com](mailto:support@agilitycms.com).

## Supported identity providers

Agility supports SAML 2.0, OpenID Connect (OIDC) and WS-Federation, so you can connect:

- Microsoft Entra ID (Azure Active Directory) and ADFS
- Okta
- Google Workspace
- OneLogin
- PingFederate
- Salesforce
- SiteMinder
- Any other SAML 2.0 or OIDC provider

For the details we need from a SAML provider, and the values to enter in it, see [SAML Identity Provider Integration](/docs/owners-admins/saml-identity-provider-integration).

## Setting it up

1. **We create a connection** for your organization and the email domains you name, and give you the values to configure in your identity provider.
2. **You configure your identity provider**, for example an Entra enterprise application, and send us its sign-in URL, sign-out URL and signing certificate.
3. **We test the connection with you.**
4. **We turn off the other sign-in methods**, if you want SSO to be the only way in. We recommend this. Otherwise users can still sign in with a password or a social account.

## How sign-in works with SSO

1. The user enters their work email address on Agility's sign-in page. Agility recognizes the domain and hides the password field.
2. The user is sent to your identity provider, which authenticates them and applies your policies: MFA, Conditional Access, device compliance.
3. Your identity provider sends a signed response back to Agility.
4. Agility matches the email address to an existing Agility user and issues a short-lived access token.
5. The Management API checks the user's access and role on every request.

![The Agility sign-in flow for Microsoft and Entra users](https://cdn.aglty.io/agility-cms-docs/images/block-editor/image-10242025175626.png)

Your identity provider can also start the sign-in (IdP-initiated SSO), for example from a tile in your company's app portal.

## Users and roles are managed in Agility

SSO decides **who** someone is. What they can do is still set in Agility.

- **Add each user in Agility** before their first sign-in, in **Settings > User Access** or through the Management API, and give them a role. See [User Access](/docs/owners-admins/user-access).
- **Roles are assigned in Agility.** Groups and roles in your identity provider aren't read, and nothing else about the user is copied from it. See [User Permissions](/docs/owners-admins/user-permissions).

Automatic provisioning with SCIM, and mapping identity-provider groups to Agility roles, are on our roadmap. [Vote for it](https://roadmap.agilitycms.com/c/fl-1067-user-provisioning-from-your-identity-provider-groups) to tell us you need it.

## Restricting access by network or device

Agility doesn't offer IP allowlisting ([request it on our roadmap](https://roadmap.agilitycms.com/submit-idea) if you need it). With SSO as the only way in, your identity provider's policies decide who can sign in and from where. In Microsoft Entra ID, a Conditional Access policy targeting the Agility enterprise application can require a named location, a compliant device or MFA.

Conditional Access is evaluated when the user signs in. A session that is already open isn't re-checked if the user moves to another network.

## When someone leaves

1. **Disable the user in your identity provider.** They can't sign in again. A session that is already open stays valid until it expires.
2. **Remove the user from your Agility instances** in **Settings > User Access**. This takes effect on their next request, and also stops any [Personal Access Tokens](/docs/developers/personal-access-tokens) they created from working on those instances. Tokens are checked by Agility, not by your identity provider, so this step matters.

## Signing in with Microsoft Entra ID

Entra users can sign in from the email field on the sign-in page, as above, or with the **Sign in with Microsoft** button. The button requires the user's UPN (User Principal Name) as their Agility email address. See [Authenticate with Microsoft or Azure AD/Entra](/docs/owners-admins/authenticate-with-microsoft-or-azure-ad).

## Direct link to your sign-in

To send users straight to your identity provider, for example from your company's app portal, use:

```text
https://manager.agilitycms.com/login?connection=<connection-name>
```

We give you the connection name when we set up your connection.

For a summary written for security reviewers, see the [Security Review Guide](/docs/owners-admins/security-review-guide).

---

## Related pages

- [User Authentication](https://agilitycms.com/docs/owners-admins/user-authentication.md)
- [Multi-Factor Authentication](https://agilitycms.com/docs/owners-admins/multi-factor-authentication.md)
- [SAML Identity Provider Integration](https://agilitycms.com/docs/owners-admins/saml-identity-provider-integration.md)
- [Authenticate with Microsoft or Azure AD/Entra](https://agilitycms.com/docs/owners-admins/authenticate-with-microsoft-or-azure-ad.md)
- [Authentication and Profiles](https://agilitycms.com/docs/owners-admins/authentication-and-profiles.md)
- [Governing AI Access to Agility CMS](https://agilitycms.com/docs/owners-admins/governing-ai-access.md)
- [Security Review Guide](https://agilitycms.com/docs/owners-admins/security-review-guide.md)

Index of every docs page: https://agilitycms.com/docs/llms.txt
