Skip to content

Cloudflare as identity provider

Cloudflare Access can use Cloudflare itself as an identity provider, allowing you to build Access policies that match on Cloudflare account membership. This is useful for scenarios where you want to restrict access to users who are members of a specific Cloudflare account, without requiring a third-party identity provider.

When a user authenticates through the Cloudflare identity provider, Access verifies their Cloudflare account membership and grants or denies access based on your policy configuration.

Set up Cloudflare as an identity provider

  1. In the Cloudflare dashboard, go to Zero Trust > Integrations > Identity providers.
  2. Under Your identity providers, select Add new identity provider.
  3. Select Cloudflare.
  4. (Optional) Enable Restrict to account members if you want to limit authentication to users who are members of your Cloudflare account. When disabled, any user with a Cloudflare account can authenticate.
  5. Select Save.

Configuration options

OptionDescriptionDefault
Restrict to account membersWhen enabled, only users who are members of your Cloudflare account can authenticate. When disabled, any Cloudflare user can authenticate (subject to your Access policies).Disabled

Use Cloudflare account membership in policies

After configuring Cloudflare as an identity provider, you can use the Cloudflare Account Member selector in your Access policies. This selector matches users based on their membership in a Cloudflare account.

  • If you omit the account ID, the selector matches members of the current account (the account where the Access policy is configured).
  • If you specify an account ID, the selector matches members of that specific account.

This is useful for cross-account access scenarios where you need to grant access to users from a different Cloudflare account.