Manage Access policies
Access policies define the users who can log in to your Access applications. You can create, edit, or delete policies at any time and reuse policies across multiple applications.
To create a reusable Access policy:
- In Zero Trust ↗, go to Access > Policies.
- Select Add a policy.
- Enter a Policy name.
- Choose an Action for the policy.
- Choose a Session duration for the policy.
- Configure as many Rules as needed.
- (Optional) Configure additional settings for users who match this policy:
- Select Save.
You can now add this policy to an Access application.
To make changes to an existing Access policy:
- In Zero Trust ↗, go to Access > Policies.
- Locate the policy you want to update and select Configure.
- Once you have made the necessary changes, select Save.
The updated policy is now in effect for all associated Access applications.
To delete a reusable Access policy:
- In Zero Trust ↗, go to Access > Policies and locate the policy you want to delete.
- If the policy is used by an application, remove the policy from all associated applications.
- Select Delete.
- A pop-up message will ask you to confirm your decision to delete the policy. Select Delete.
You can test your Access policies against all existing user identities in your Zero Trust organization. For the policy tester to work, users must have logged into the App Launcher or any other Access application at some point in time.
The Access policy builder allows you to test your rules before saving any changes.
To test an individual Access policy:
- In Zero Trust ↗, go to Access > Policies.
- Locate the policy you want to test and select Configure.
- Go to Policy tester and select Test policies.
The policy tester reports the percentage of active users who are allowed or denied access to an application based on this policy. You can expand the test results to view a list of allowed or blocked users.
You can test your Access application policies against your user population before deploying changes to your users. After saving your changes, you can also perform a more detailed policy test for a specific user.
To test if users have access to an application:
-
In Zero Trust ↗, go to Access > Applications.
-
Locate the application you want to test and select Configure.
-
Go to Policies > Policy tester.
-
To test all active users in your organization, select Test policies.
The policy tester reports the percentage of users who are allowed or denied access to this application based on all configured policies. You can expand the test results to view a list of allowed or blocked users.
-
To perform a detailed test on a single user: a. If you made any changes to your policies, first save the application. b. Select testing a single user. c. Enter their email address and select Test policies.
The single user test results will show:
- Whether the user is allowed or denied access to this application based on all configured policies.
- The user's identity from their most recent Access login attempt.
- Whether the user matches individual Allow, Block, or Bypass policies.
Legacy policies are scoped to a specific application and cannot be added to newly created Access applications.
To migrate legacy policies to reusable policies:
- Create a reusable policy that will replace the legacy policy.
- Go to the Access application associated with the legacy policy.
- Add the reusable policy to the application and remove the legacy policy.
- Repeat these steps for each legacy policy. If you have duplicate legacy policies, you can replace them with a single reusable policy.
You can use the API to convert a legacy policy into a reusable policy. To convert a legacy policy, make a PUT
request with an empty request body:
curl --request PUT \https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/access/apps/$APP_ID/policies/$POLICY_ID/make_reusable \--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"
The policy is now removed from the applications endpoint (/access/apps/$APP_ID/policies
) and managed using the reusable policies endpoints(/access/policies/$POLICY_ID
).
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark