Connecting Cloudflare to Drata allows Drata to retrieve Cloudflare configuration metadata for Infrastructure and, if enabled, Cloudflare user access information for User Access Reviews.
Key Capabilities
Infrastructure
Configuration ingestion: Imports cloud infrastructure metadata
Compliance mapping: Supports infrastructure-related compliance tests
Read-only access: Provides environment visibility without making configuration changes
User Access Review (optional)
Access retrieval: Retrieves users and assigned roles from connected systems.
Review enablement: Makes this access data available for review in Drata’s Access Reviews feature.
Account mapping support: Allows external accounts to be mapped to Drata personnel for accurate review and tracking.
Prerequisites & Data Access
In Cloudflare
Administrator or Super Administrator access.
To create an Account API token, you need API Token Provisioning capabilities or Super Administrator status.
To create a User API token, you need the ability to create new roles.
A Cloudflare account. If you need one, sign up here.
The ability to create a Custom API Token with read-only scopes.
One of the two token types below:
Account API token (recommended): Owned by the account rather than a user, so it keeps working even if the person who created it leaves your organization. No service account is needed.
User API token: Created under a user profile. If you use this type, create it with a dedicated service account (for example,
[email protected]) and not a personal account. Required if you plan to enable User Access Review, because the Users permission scopes are only available on User API tokens.
In Drata
One of these roles: Admin, Workspace Manager, or DevOps Engineer.
Permissions & Data Table
Permission Type | Why It’s Needed | What Drata Reads (Read-Only) |
Custom API Token | Authenticates the Cloudflare integration | Infrastructure configuration, user list, roles (if UAR enabled) |
Accounts, Zones, Users | Defines which Cloudflare resources Drata can pull data from | Zone configuration, security settings |
Step-by-Step Setup
Step 1: Create the token (Option A or B).
Step 2: Set the read permissions.
Step 3: Choose the accounts and zones.
Step 4: Paste the token into Drata, which is the screen you showed.
Step 1: Create a Custom API Token
Choose the token type that matches how you’ll use the connection.
Option A: Account API token
In the Cloudflare dashboard, select your account.
Go to Manage account → Account API Tokens.
Select Create Token and enter a name such as
Drata.Continue to Step 2 to set the permissions.
Option B: User API token
Sign in to the Cloudflare dashboard with the dedicated service account.
In the upper-right corner, select your profile icon, then My Profile, and go to API Tokens.
Select Create Token, scroll to the Custom token section, and select Get started.
In the Token name field, enter a name such as
Drata.
Step 2: Set the Read Permissions
Drata only needs read-only access to verify your Cloudflare configuration. You’ll need to add the permission scopes.
In the permissions configuration screen, select + Add more for each permission configurations.
Use the table below to add the correct type, scope, and access level
The 8 Account/Zone scopes (these are for Infrastructure monitoring — always needed):
Type | Scope |
Account | Access: Organizations, Identity Providers, and Groups |
Account | Account Firewall Access Rules |
Account | Account Settings |
Zone | Zone Settings |
Zone | Zone |
Zone | Firewall Services |
Zone | Access: Apps and Policies |
Zone | Zone WAF |
User API tokens only, if enabling User Access Review: Select + Add more and add the two scopes below. These scopes aren’t available on Account API tokens, which is why User Access Review requires a User API token.
Type | Scope |
Users | Memberships |
Users | User Details |
After setting permissions, you'll choose which Cloudflare accounts and zones the token can access.
Step 3: Select Accounts and Zones
Define the scope of access for the token. We recommend limiting access to only the accounts and zones you use in production.
In the Account Resources section:
Select All accounts, or
Choose specific accounts (recommended).
To add more than one account, select the first, then choose + Add more.
In the Zone Resources section:
In the Zone Resources section, select All zones, or select Specific zones (It is recommended to select specific zones if you use one domain for production).
To include multiple specific zones, select the first one, then select + Add more.
Leave the Client IP Address Filtering and TTL settings unchanged.
Select Continue to summary, then select Create token.
Step 4: Connect inside Drata
In Drata, go to the Connections page
Search for and select Cloudflare within your available connections.
Start the connection process.
If you want User Access Review, enable it. This requires a User API token (see Step 2).
Paste your API Token when prompted.
Expected outcome:
Drata establishes a connection and begins retrieving Cloudflare data.

