Set up dashboard SSO

Last updated Aug 14, 2026 Cloudflare offers single sign-on (SSO) for all customers who log in with a custom email domain. By creating a Cloudflare SSO connector, you can enforce SSO to the Cloudflare dashboard with the identity provider (IdP) of your choice. SSO will be enforced for every user in your email domain.

Availability

Cloudflare Dashboard SSO is available for free to all plans.

Free Pro Business Enterprise
Availability Yes Yes Yes Yes

Prerequisites

  1. You must control your email domain and be able to add a TXT record to verify this.
  2. Public email providers such as @gmail.com are not allowed.
  3. Every user with that email domain must be an employee in your organization. For example, university domains such as @harvard.edu are not allowed because they include student emails.
  4. You must be a super administrator and be able to access the Cloudflare API.
  5. A Cloudflare Zero Trust organization with any subscription tier (including Free) must be created. To set up a Cloudflare Zero Trust organization, refer to Create a Cloudflare Zero Trust organization.

1. Set up an IdP

Add an IdP to Cloudflare Zero Trust by following our detailed instructions.

Once you configure your IdP, make sure you also test your IdP.

2. Register your domain with Cloudflare for SSO

Caution

You must create an Account API token with the role SSO Connector Edit and store it securely. This acts as a backup plan, allowing you to disable SSO via the API if you are accidentally locked out, such as due to changes in your IdP configuration later.

  1. Once you have configured an IdP in Cloudflare One, go to the Members page to manage SSO connectors.

Go to Members ↗

  1. If step 1 was successful, a button to add a new SSO domain will be present. Select the button to begin the process of adding a new SSO domain.

Screenshot of the SSO connector create modal

  1. Enter your email domain and select Create to move to the verification step.

Note

Some top level domains, such as .edu, are prohibited from being used as SSO domains.

Using a command line terminal where you have already set the environment variable CLOUDFLARE_API_TOKEN to a user or account API token which has the SSO Connector Edit permission, run the following command to create an SSO connector. Replace {account_id} with your account ID, and {domain} with your email domain.

cURL commandbash

curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/sso_connectors" \
  --request POST \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --json '{"email_domain":"{domain}"}'
{
    "success": true,
    "errors": [],
    "messages": [],
    "result": {
        "id": "c3ebcba5c20b42f73e111110d0be67d",
        "enabled": false,
        "email_domain": "cool.cats",
        "verification": {
            "code": "cloudflare_dashboard_sso=111111111",
            "status": "pending"
        },
        "created_on": "2025-09-05T20:35:34Z"
    }
}

3. Verify domain ownership

If you are unable to change your DNS records right away, the option to verify later is available. The verification process can be manually triggered from the actions menu for that connector in the list.

Screenshot of the SSO connector create modal

Copy the verification code and create a TXT record in your DNS configuration with that value. The record must include all of the text including the cloudflare_dashboard_sso= prefix.

Cloudflare will automatically poll this DNS record until it is found or a timeout is reached within two days.

If the verification process fails due to timeout, you can manually reinitiate the polling by selecting Begin verification in the actions menu for that connector in the list.

Copy the verification code (for example cloudflare_dashboard_sso=1111111) and create a TXT record in your DNS configuration with that value. To test that the DNS record was correctly configured, you can use the dig command to query your email domain:

dig cool.cats TXT +short
"cloudflare_dashboard_sso=111111111"

The TXT record must include the cloudflare_dashboard_sso= prefix along with the numerical code.

Cloudflare will automatically poll this DNS record until it is found or a timeout is reached within two days. If verification fails due to timeout, you may manually reinitiate the polling by running the following command:

cURL commandbash

curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/sso_connectors/{sso_connector_id}/begin_verification" \
  --request POST \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"

Once the verification process has completed or timed out, you will receive an email notification with the verification result.

4. Enable dashboard SSO

Caution

Enabling Cloudflare Dashboard SSO for an email domain (for example, @mycompany.com) will apply globally to all users with that domain, regardless of which accounts those users have access to. All users will be required to authenticate via the specified identity provider, including users registered on Cloudflare prior to the domain being configured for SSO.

Once the verification process has completed and successfully verified domain ownership, you may enable the connector.

Domains that are associated with an already enabled connector belonging to a different account may not be enabled on a new account until disabled on the old account.

Enable the connector by selecting Enable in the Actions menu for that connector in the list.

Screenshot of the SSO connector enable button

Enable the connector by running the following — again, replacing the {account_id} value with your account ID, and additionally replacing the {sso_connector_id} with the value you obtained from the id field in the response to the previous call.

cURL commandbash

curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/sso_connectors/{sso_connector_id}" \
  --request PATCH \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --json '{"enabled": true}'

Test your IdP before enforcement

Before enabling SSO for your domain, verify that your identity provider is configured correctly:

  1. In the Cloudflare dashboard ↗︎, go to Zero Trust > Integrations > Identity providers.
  2. Find your IdP and select Test.
  3. Confirm that the test returns a successful authentication result.

If the test fails, review your IdP configuration against the identity provider setup instructions before enabling the SSO connector.

Troubleshoot IdP errors

If you encounter errors during IdP setup or testing, provide the following when contacting support:

  1. The error message returned by the IdP test.
  2. A sanitized HAR file captured while running the IdP test from the dashboard.

Limitations

Cloudflare dashboard SSO does not support:

  • Users with plus-addressed emails, such as example+2@domain.com. If you have users like this added to your Cloudflare organization, they will be unable to login with SSO.
  • Adding a separate email-based policy to the Zero Trust SSO application that does not match your SSO domain policy.
  • Multiple Zero Trust domain policies. If another domain policy is required, you can create another SSO connector. This will create a second policy for that new domain in your SSO application.
  • Deleting the auto-generated Zero Trust allow email domain policy. If this policy is deleted, your organization's administrators cannot access the Cloudflare dashboard.

IdP-initiated SSO

IdP-initiated login is supported for Cloudflare dashboard SSO, with configuration available via your identity provider (IdP).

A step-by-step guide is currently available for Okta, and similar configurations are possible with other identity providers that support custom SSO endpoints.

Okta

Configure an identity provider (IdP)-initiated single sign-on (SSO) session using Cloudflare Zero Trust and Okta.

Prerequisites

  1. In the Cloudflare dashboard ↗︎, go to Zero Trust > Access controls > Applications > select your SSO App.
  2. Select Configure to access the application settings.
  3. In the Basic Information section, copy the SSO Endpoint URL and Access Entity ID or Issuer. You will need these values for your IdP setup.

Configure Okta as the IdP

  1. Log in to your Okta Admin Dashboard ↗︎ and go to Applications > Applications.
  2. Select Create App Integration to start a new SAML integration to handle the IdP-initiated SSO flow. Note that this is a second, distinct Cloudflare-Okta integration, created separately from the IdP integration with Zero Trust.
  3. In the pop-up, select SAML 2.0 and select Next.
  4. Enter a name for the app and select Next.
  5. In the Single Sign-On URL field, paste the SSO Endpoint URL you copied earlier.
  6. In the Audience URI (SP Entity ID) field, paste the Access Entity ID or Issuer you copied earlier.
  7. Set the Name ID Format to EmailAddress.
  8. Set the Application Username to Email.
  9. Select Next > Finish to save the integration.
  10. Test the integration by going to your Okta User Dashboard, locating the new app tile, and selecting it to verify the SSO flow.