Access Groups define a set of rules that can be defined once and then quickly applied across many applications. You can select an Access Group as an attribute in any Policy rule, and all the criteria from the selected Access Group will apply to that application.
Imagine you want to grant access to your applications to your team based in Lisbon, Portugal. In order to avoid building the same set of rules over and over across your applications, you can create an Access Group called
lisbon-team, which comprises an Include rule granting access to everyone in Portugal, and a Require rule restricting access to users whose email ends in
Once the group is set up, you can use it to configure rules within your applications as follows:
To create and manage Access Groups:
- On the , navigate to the My Teams section.
- Open the Groups tab.
- Click Add a Group.
- Enter a name for the group.
- Specify as many rules as needed to define your user group.
Cloudflare Access supported a flow in the UI to build policies with IdP groups, called Legacy groups. Native integration with groups surfaced from your IdP has replaced this feature.
If your account built policies with Legacy groups, these are still available and continue to work as you intend.
If your account uses Legacy groups, a banner displays in the Access dashboard.
Unfortunately, Access cannot automatically migrate your Legacy groups. This is due to the risk of Legacy group names not matching identity provider group names or, in some cases, IdP groups consisting of a unique ID unknown to Access. To migrate from Legacy groups:
Open policies using Legacy groups.
Navigate to your Access policies and open any using Legacy groups.
Replace Legacy groups with identity provider groups.
Replace the policy rules using Legacy groups by adding a new, mirrored rule that pulls groups from your identity provider. For example, if you have a Legacy group that allows “Engineers,” and that Legacy group maps to the same membership of an Okta® group, add a new rule based on Okta groups to allow “Engineers.”
Remove the Legacy group rule.
Once you create a new rule with the group from your identity provider, remove the rule that uses Legacy groups.
Note: If you continue to use policies with Legacy groups, Access still prevents unauthorized users from reaching your applications; however, users who are members of Legacy groups are also prevented from being authenticated.