CASB SaaS Integration Prerequisites, Permissions and Troubleshooting
Who can authorize Cloudflare CASB, which API and OAuth scopes each app needs, and how to fix failed SaaS integration setup.
This page summarizes Cloudflare documentation on connecting third-party SaaS and cloud environments to Cloudflare CASB (Cloud Access Security Broker). Administrators use these integrations so CASB can call each vendor’s APIs, read configuration and content metadata, and report misconfigurations; optional remediation needs broader scopes. Setup usually fails when the signing-in account lacks the vendor’s required admin role or when the wrong permission set is approved.
CASB integrations: what authorization does
Section titled “CASB integrations: what authorization does”A CASB integration lets Cloudflare make API calls to the SaaS or cloud endpoint and read data on your behalf. For scanning, Cloudflare documents integrations as read-only and least privilege:
When you integrate a third-party SaaS application or cloud environment with Cloudflare CASB, you allow CASB to make API calls to its endpoint and read relevant data on your behalf. The CASB integration permissions are read-only and follow the least privileged model. In other words, only the minimum access required to perform a scan is granted.
— Cloudflare, Cloud and SaaS findings
Before you connect an app, your account in that environment must meet the prerequisites listed in that app’s integration guide:
Before you can integrate a SaaS application or cloud environment with CASB, your account with that integration must meet certain requirements. Refer to the SaaS application or cloud environment’s integration guide to learn more about the prerequisites and permissions.
— Cloudflare, Scan SaaS applications with Cloudflare CASB
Integration prerequisites: which admin role do I need?
Section titled “Integration prerequisites: which admin role do I need?”The account that clicks Authorize during setup must hold administrative privileges in the third-party application. Cloudflare names this as the main reason integrations fail:
Ensure the account you are using to authorize the integration has the necessary administrative privileges in the third-party application (for example, Global Administrator for Microsoft 365, Super Admin for Google Workspace, or Organization Owner for GitHub). Insufficient permissions are the leading cause of setup failures.
— Cloudflare, Troubleshoot CASB
The same guidance appears in the broader CASB troubleshooting article.
| Cloud / SaaS family | Documented subscription or plan | Role or access to authorize |
|---|---|---|
| Microsoft 365 (Admin Center, OneDrive, Outlook, SharePoint, Copilot, etc.) | Business Basic/Standard, M365 E3/E5/F3 | Global admin or equivalent |
| Google Workspace (Gmail, Drive, Calendar, Admin, Gemini) | Business Starter/Standard/Plus or Enterprise | Super Admin and Owner on the GCP project used |
| GitHub | Free, Pro, or Enterprise org | Organization Owner or GitHub App manager |
| Atlassian (Jira, Confluence, Bitbucket) | Cloud plans per product | Bitbucket: Site admin and/or Organization admin; Jira/Confluence via OAuth app |
| Box | Business tiers | Box Admin |
| Dropbox | Business (Standard, Advanced, Enterprise, Education) | Team admin |
| Salesforce | Most editions | System Administrator or View Setup / Customize Applications / Modify All Data |
| Slack | Workspace (Free through Enterprise Grid) | Workspace member; app install approval if required |
| OpenAI / Anthropic (enterprise) | ChatGPT Enterprise / org admin | Organization-level admin API key |
| AWS S3 / GCP Cloud Storage | Cloud account | IAM ability to create roles or service accounts (AWS S3, GCP Cloud Storage) |
FedRAMP-oriented guides (for example Microsoft 365 Admin Center (FedRAMP) and Google Gmail (FedRAMP)) repeat the same subscription and global-admin / Super Admin patterns; use the FedRAMP integration page when your tenant requires it.
How vendors authorize CASB: OAuth, API keys, and cloud IAM
Section titled “How vendors authorize CASB: OAuth, API keys, and cloud IAM”Each integration guide specifies one primary authorization path. You should not guess scopes from another product—even within the same vendor, child apps (for example Outlook) point to the parent Microsoft 365 integration permissions.
Microsoft 365: Microsoft Graph delegated permissions
Section titled “Microsoft 365: Microsoft Graph delegated permissions”The Microsoft 365 integration lists delegated Graph permissions for scanning, including Application.Read.All, Calendars.Read, Domain.Read.All, Files.Read.All, User.Read.All, AuditLog.Read.All, and others. Cloudflare states these follow least privilege.
If you enable remediation, CASB requires an additional set of write permissions (for example Files.ReadWrite.All, User.ReadWrite.All, Mail.ReadWrite). Those are only needed when you choose actions such as changing sharing or quarantining content—not for read-only assessment alone.
Google Workspace: Admin SDK and product scopes
Section titled “Google Workspace: Admin SDK and product scopes”The Google Workspace integration enumerates OAuth scopes such as https://www.googleapis.com/auth/admin.directory.user.readonly, drive.readonly, gmail.settings.basic, and cloud-platform.read-only. Per-product pages (for example Gmail, Google Drive) defer to the shared Google Workspace permissions list.
Email Security with Gmail may additionally require a GCP service account, domain-wide delegation, and enabled APIs (Enable Gmail BCC integration). The Workspace administrator email you enter must match the Google Workspace administrator account or the integration will not work.
GitHub, Atlassian, Box, Salesforce: OAuth apps
Section titled “GitHub, Atlassian, Box, Salesforce: OAuth apps”These integrations use vendor OAuth with read-oriented scopes—for example GitHub read-only organization permissions (GitHub integration), Atlassian scopes on Jira and Confluence, Box “Read all files and folders” (Box), and Salesforce connected-app scopes api, web, refresh_token, openid (Salesforce).
AWS and GCP: cross-account IAM or service accounts
Section titled “AWS and GCP: cross-account IAM or service accounts”AWS S3 requires an IAM role with cross-account access granting s3:PutBucketNotification, s3:GetObject, and s3:ListBucket. GCP Cloud Storage uses a service account with roles/viewer and roles/storage.admin for the documented integration.
AI vendors: organization and project API keys
Section titled “AI vendors: organization and project API keys”Anthropic and OpenAI use Admin API keys (read-only org metadata and compliance-related data). An optional project-level key applies when project scopes are included in the scan.
Long scope lists (for example Zoom or Dropbox) belong in that product’s guide; approve exactly what the Cloudflare setup wizard requests for that integration.
Scan-only permissions vs remediation: why write access appears
Section titled “Scan-only permissions vs remediation: why write access appears”During setup, CASB prompts you to approve permissions. Some look broad (including write access) because remediation features need them:
During setup, CASB will ask you to approve a set of permissions. The permissions requested are required for the CASB service to scan for misconfigurations and, if you choose, to take remediation actions. While some permissions may seem broad (for example, write access), they are necessary for actions like quarantining a file or modifying sharing settings. Refer to the specific integration guide for a detailed list of required permissions.
— Cloudflare, Troubleshoot CASB
For Microsoft Email Security API setup, Cloudflare’s Set up with Microsoft 365 flow lets you choose Read-only mode or Read-Write mode (Read-Write is recommended when you want CASB to modify data). That is separate from but related to the Graph permission split on the Microsoft 365 CASB page.
Common setup mistakes
Section titled “Common setup mistakes”- Wrong human admin: Using a standard user or delegated admin without Global admin / Super Admin / Organization Owner rights when authorizing OAuth.
- Wrong integration guide: Approving scopes from a sibling product instead of the guide for the app you are connecting (many Microsoft 365 and Google Workspace children say “refer to … integration permissions”).
- GCP project ownership: Google Workspace CASB expects a user with Super Admin and GCP project Owner; missing Owner blocks API enablement paths described on Google Workspace.
- Slack app policy: Workspace requires owner approval for new apps (Slack integration).
- ServiceNow table ACLs: CASB needs GET on Table API tables
incident,instance,kb_knowledge, andsys_userper ServiceNow—authorization can succeed while ACLs still block reads. - Expired OAuth client (Google IdP): Deleting or expiring the Google OAuth client yields
Error 401: deleted_client; Cloudflare points to re-run steps in the Google and Google Workspace IdP guides.
How to check this on your site
Section titled “How to check this on your site”-
Open the Cloudflare CASB integration guide for your SaaS app and confirm your tenant’s plan and admin role match the prerequisites table in that guide (for example Microsoft 365 or Google Workspace).
-
Sign in to the third-party admin console with that privileged account—not a break-glass account that bypasses SSO incorrectly for Google Super Admins when using Access with Google Workspace.
-
Start or re-run authorization in Cloudflare Zero Trust and compare the permission prompt to the scoped list in the integration doc (Graph permissions, Google scopes, GitHub App permissions, etc.).
-
If the integration stays in a failed state, follow Troubleshoot CASB—verify admin privileges first, then OAuth consent.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match the linked Cloudflare documentation, email yimasynthetic@gmail.com with the page URL and the exact sentence you think is wrong or unclear.