Supported editions for this feature: Frontline Standard and Frontline Plus; Enterprise Standard and Enterprise Plus; Education Standard and Education Plus; Enterprise Essentials Plus; Cloud Identity Premium. Compare your edition
These examples show you how to exempt allowlisted apps so they can always access Application Programming Interfaces (APIs) for specific Google services, regardless of the context conditions applied in a policy.
Note: Context conditions were previously referred to as access levels in the Google Admin console.
Use case 1: Block third-party app API access without exemptions
In this example, we don't exempt any third-party trusted apps. We enforce the Prevent out of corp network access context condition for Google Keep on the Temp Worker organizational unit. Any apps accessing Google Keep through APIs from outside of your organization's network are blocked.
-
In the Google Admin console, go to Menu
Security
Access and data control
Context-Aware Access.
Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.
- For Policies, click Create new policy.
- For Policy status, select Active.
- For Action, select Block.
- For User conditions, click Edit and select the Temp Worker organizational unit.
- For Context conditions, click Edit and select Prevent out of corp network access.
- For Apps, click Edit and select Google Keep.
- For Policy settings, click Edit:
- Check the Block users from accessing Google desktop and mobile apps if context conditions aren't met box.
- Check the Block other apps from accessing the selected apps via APIs, if context conditions aren't met box.
- Leave the Exempt allowlisted apps so they can always access APIs for specific Google services, regardless of context conditions box unchecked.
- Click Save.
- Click Create policy.
Use case 2: Exempt a third-party app
In this example, we exempt the third-party app Box. We enforce the Prevent out of corp network access context condition for Google Drive on the Temp Worker organizational unit. The third-party app Box can access Google Drive even if the API request comes from outside of your organization's network.
-
In the Google Admin console, go to Menu
Security
Access and data control
Context-Aware Access.
Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.
- For Policies, click Create new policy.
- For Policy status, select Active.
- For Action, select Block.
- For User conditions, click Edit and select the Temp Worker organizational unit.
- For Context conditions, click Edit and select Prevent out of corp network access.
- For Apps, click Edit and select Drive and Docs.
For Policy settings, click Edit:
- Check the Block users from accessing Google desktop and mobile apps if context conditions aren't met box.
- Check the Block other apps from accessing the selected apps via APIs, if context conditions aren't met box.
- Check the Exempt allowlisted apps so they can always access APIs for specific Google services, regardless of context conditions box.
Select Box.
Note: Any third-party app must be marked as Trusted on the App Access Control page to appear in this list. You must add each new script in Google Apps Script to the exemption list.
Click Save.
Click Create policy.
Use case 3: Exempt another third-party app in the same organizational unit
In this example, we add the Salesforce third-party app to our configuration in the previous use case.
An app exemption list applies to a specific organizational unit. Any app on the list is exempted across all policies defined for that organizational unit.
As a result, in this example, both Box and Salesforce can access Drive and Gmail regardless of the assigned context conditions.
-
In the Google Admin console, go to Menu
Security
Access and data control
Context-Aware Access.
Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.
- For Policies, click Create new policy.
- For Policy status, select Active.
- For Action, select Block.
- For User conditions, click Edit and select the Temp Worker organizational unit.
- For Context conditions, click Edit and select Prevent out of US access.
- For Apps, click Edit and select Gmail.
- For Policy settings, click Edit:
- Check the Block users from accessing Google desktop and mobile apps if context conditions aren't met box.
- Check the Block other apps from accessing the selected apps via APIs, if context conditions aren't met box.
- Check the Exempt allowlisted apps so they can always access APIs for specific Google services, regardless of context conditions box.
- Select Salesforce.
- Click Save.
- Click Create policy.
Groups and organizational unit exemption behavior
Even though group policies supersede organizational unit policies, you can still exempt trusted third-party apps from being blocked through exposed APIs when assigning Context-Aware Access policies at the group level. However, you can't define group-level exemption lists like you can for organizational units.
- If you check the app exemption box while assigning a group-level policy, the individuals in the group are subject to the exemption lists for their respective organizational units.
- If you uncheck the app exemption box, no exemptions apply to members of the group. Because group policies supersede organizational unit policies, exemptions defined in child organizational units don't apply to individuals in this group.
Google, Google Workspace, and related marks and logos are trademarks of Google LLC. All other company and product names are trademarks of the companies with which they are associated.