Use case: Public IP address enforcement

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

This example shows you how to create a Context-Aware Access context condition for public IP addresses and then enforce it across your apps using a policy.

Note: Context conditions were previously referred to as access levels in the Google Admin console.

Before you begin

For Workspace-only users, we recommend that you do not add or modify Context-Aware Access context conditions using the Google Cloud console. Doing so can cause this error: Unsupported attributes are being used on Google Workspace and block users.

Configure public IP address enforcement

  1. In the Google Admin console, go to Menu and then Security and then Access and data control and then Context-Aware Access.

    Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.

  2. For Policies, click View all policies.
  3. At the top, next to Create policy, click the Down arrow and select Create context condition.
  4. For Details, enter a Context condition name, such as Public IP address enforcement, and an optional description.
  5. Select Meet attributes. This means that users must satisfy the attributes in the condition to access apps.
  6. On the Basic tab, click Add condition.
  7. Select IP subnet (Public) and add a public IP address. This is an IPv4 or IPv6 address or routing prefix in Classless Inter-Domain Routing (CIDR) block notation.
    • Static IP addresses are supported.
    • To use a dynamic IP address, you must define a static IP subnet (Public) that covers the range of the dynamic IP address. Access is granted if the dynamic IP address falls within the specified range and denied if it falls outside.
  8. Click Create condition. You return to the Context conditions tab on the Policies page.
  9. Click Create policy.
  10. For Policy status, at the top of the page, choose an option:
    • To assess a policy's impact on users before implementing the policy, select Monitor.
    • To enforce the policy immediately, select Active and then for Action, select Block or Warn.
  11. For User conditions, select the organizational unit or group you want to apply the policy to.
  12. Click Save.
  13. For Context conditions, click Edit. Select the context condition you created earlier, such as Public IP address enforcement.
  14. Click Save.
  15. For Apps, click Edit and select the apps for users to access. Do not assign the policy to the Google Admin console.
  16. Click Save.
  17. For What will this policy do?, review the policy summary generated by your selections.
  18. (Optional) To update components, next to a section, click Edit.
  19. Click Create policy.

Verify policy assignment

To verify that your policy is properly configured:

  1. In the Google Admin console, go to Menu and then Security and then Access and data control and then Context-Aware Access.

    Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.

  2. Click View all policies.
  3. Confirm that your policy has the following settings:
    • The correct organizational unit or group for User conditions.
    • The assigned Apps and Context conditions.
    • A Status set to Active or Monitor.

Customize user remediation messages

To customize the messages users receive when app access is blocked:

  1. In the Google Admin console, go to Menu and then Security and then Access and data control and then Context-Aware Access.

    Requires the Data security access level and rule management privileges and the Admin API groups and users read privileges.

  2. For General settings, click View settings.
  3. Configure your message preferences:
    • Remediation messages—System-generated messages corresponding to the specific policy violation that blocked access. These offer self-serve options so users can unblock themselves.
    • Custom messages—Specific guidance or help links provided by your organization.
    • Default message—Displays if no remediation or custom message is configured. For example, Your organization's policy is blocking access to this app.

For details, go to Allow users to unblock apps with remediation messages in Context-Aware Access.