Skip to content
Start here

Organizations

Get your Zero Trust organization
client.ZeroTrust.Organizations.List(ctx, query) (*Organization, error)
GET/{accounts_or_zones}/{account_or_zone_id}/access/organizations
Create your Zero Trust organization
client.ZeroTrust.Organizations.New(ctx, params) (*Organization, error)
POST/{accounts_or_zones}/{account_or_zone_id}/access/organizations
Update your Zero Trust organization
client.ZeroTrust.Organizations.Update(ctx, params) (*Organization, error)
PUT/{accounts_or_zones}/{account_or_zone_id}/access/organizations
Revoke all Access tokens for a user
client.ZeroTrust.Organizations.RevokeUsers(ctx, params) (*OrganizationRevokeUsersResponse, error)
POST/{accounts_or_zones}/{account_or_zone_id}/access/organizations/revoke_user
ModelsExpand Collapse
type LoginDesign struct{…}
BackgroundColor stringoptional

The background color on your login page.

HeaderText stringoptional

The text at the top of your login page.

LogoPath stringoptional

The URL of the logo on your login page.

TextColor stringoptional

The text color on your login page.

type Organization struct{…}
AllowAuthenticateViaWARP booloptional

When set to true, users can authenticate via WARP for any application in your organization. Application settings will take precedence over this value.

AuthDomain stringoptional

The unique subdomain assigned to your Zero Trust organization.

AutoRedirectToIdentity booloptional

When set to true, users skip the identity provider selection step during login.

CustomPages OrganizationCustomPagesoptional
Forbidden stringoptional

The uid of the custom page to use when a user is denied access after failing a non-identity rule.

IdentityDenied stringoptional

The uid of the custom page to use when a user is denied access.

DenyUnmatchedRequests booloptional

Determines whether to deny all requests to Cloudflare-protected resources that lack an associated Access application. If enabled, you must explicitly configure an Access application and policy to allow traffic to your Cloudflare-protected resources. For domains you want to be public across all subdomains, add the domain to the deny_unmatched_requests_exempted_zone_names array.

DenyUnmatchedRequestsExemptedZoneNames []stringoptional

Contains zone names to exempt from the deny_unmatched_requests feature. Requests to a subdomain in an exempted zone will block unauthenticated traffic by default if there is a configured Access application and policy that matches the request.

IsUIReadOnly booloptional

Lock all settings as Read-Only in the Dashboard, regardless of user permission. Updates may only be made via the API or Terraform for this account when enabled.

LoginDesign LoginDesignoptional
MfaConfig OrganizationMfaConfigoptional

Configures multi-factor authentication (MFA) settings for an organization.

AllowedAuthenticators []OrganizationMfaConfigAllowedAuthenticatoroptional

Lists the MFA methods that users can authenticate with.

One of the following:
const OrganizationMfaConfigAllowedAuthenticatorTotp OrganizationMfaConfigAllowedAuthenticator = "totp"
const OrganizationMfaConfigAllowedAuthenticatorBiometrics OrganizationMfaConfigAllowedAuthenticator = "biometrics"
const OrganizationMfaConfigAllowedAuthenticatorSecurityKey OrganizationMfaConfigAllowedAuthenticator = "security_key"
SessionDuration stringoptional

Defines the duration of an MFA session. Must be in minutes (m) or hours (h). Minimum: 0m. Maximum: 720h (30 days). Examples:5m or 24h.

MfaRequiredForAllApps booloptional

Determines whether global MFA settings apply to applications by default. The organization must have MFA enabled with at least one authentication method and a session duration configured.

Name stringoptional

The name of your Zero Trust organization.

SessionDuration stringoptional

The amount of time that tokens issued for applications will be valid. Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h.

UIReadOnlyToggleReason stringoptional

A description of the reason why the UI read only field is being toggled.

UserSeatExpirationInactiveTime stringoptional

The amount of time a user seat is inactive before it expires. When the user seat exceeds the set time of inactivity, the user is removed as an active seat and no longer counts against your Teams seat count. Minimum value for this setting is 1 month (730h). Must be in the format 300ms or 2h45m. Valid time units are: ns, us (or µs), ms, s, m, h.

WARPAuthSessionDuration stringoptional

The amount of time that tokens issued for applications will be valid. Must be in the format 30m or 2h45m. Valid time units are: m, h.

OrganizationsDOH

Get your Zero Trust organization DoH settings
client.ZeroTrust.Organizations.DOH.Get(ctx, query) (*OrganizationDOHGetResponse, error)
GET/accounts/{account_id}/access/organizations/doh
Update your Zero Trust organization DoH settings
client.ZeroTrust.Organizations.DOH.Update(ctx, params) (*OrganizationDOHUpdateResponse, error)
PUT/accounts/{account_id}/access/organizations/doh