The Google Cloud console, Google Cloud CLI, and REST API all display
[error messages](https://docs.cloud.google.com/iam/docs/permission-error-messages.md.txt) when a user tries to access a resource that they
don't have permission to access. When a user encounters a permission error, they
can request access to the resource. This creates an email that the user can
copy and send to an administrator or one that automatically sends to your
organization's [technical Essential Contact](https://docs.cloud.google.com/resource-manager/docs/managing-notification-contacts.md.txt#notification-categories).

> [!NOTE]
> **Note:** To prevent access request emails from being sent to your organization's technical Essential Contact, you can [disable auto-generated access request
> emails](https://docs.cloud.google.com/iam/docs/resolve-permission-errors#disable-autogenerated-requests).

When the administrator clicks the link in the generated email, they're directed
to the Google Cloud console, where they can choose to reject the request or
proceed to remediation.

If they choose to proceed to remediation, then the Google Cloud console shows
a policy remediation summary. Administrators can also access the policy
remediation summary by clicking **View troubleshooting details** on a permission
error message and then clicking **Policy Troubleshooter** , or by
going to the **Policy Troubleshooter** page and entering an error ID.

The remediation summary page describes the request details, including the
requesting principal, resource, and the permissions that the principal is
requesting.

![The policy remediation summary page showing request details.](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-summary.png)

![](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-summary.png)

The **Current access state** section summarizes the results for each policy type
(specifically, allow policies, deny policies, and Principal Access Boundary policies)
and states the overall outcome. The outcome indicates whether the principal can
access the resource, according to the relevant policies.

You can get more information about the policies that are blocking the user's
access by clicking **Advanced troubleshooting**.

Click **Remediate** to view options for remediating that user's access issues.
To learn the different ways that you can resolve permission errors caused by
each of the different policy types using the Google Cloud console, see the
following:

- [Remediate allow policy permission errors](https://docs.cloud.google.com/policy-intelligence/docs/remediate-requests.md.txt#remediate-allow)
- [Remediate deny policy permission errors](https://docs.cloud.google.com/policy-intelligence/docs/remediate-requests.md.txt#remediate-deny)
- [Remediate Principal Access Boundary permission errors](https://docs.cloud.google.com/policy-intelligence/docs/remediate-requests.md.txt#remediate-pab)

## Remediate allow policy

The **Remediate allow policy** page shows the permissions that the user is
missing. To resolve access blocked by an allow policy, you can either grant that
user access or create a [Privileged Access Manager entitlement](https://docs.cloud.google.com/iam/docs/pam-overview.md.txt) for the
user. After you create the entitlement, the user can request it to access the
resource.

![The policy remediation summary page showing allow policy details.](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-allow.png)

![](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-allow.png)

To grant the user access, do the following:

1. Select **Grant role**.
2. Click **Continue**.
3. Select an applicable role to view details about that role.
4. Click **Grant access**.

> [!NOTE]
> **Note:** Changes to a principal's access are [eventually consistent](https://wikipedia.org/wiki/Eventual_consistency). This means that it takes time for access changes to propagate through the system. To learn how long it takes, on average, for access changes to propagate, see [Access change propagation](https://docs.cloud.google.com/iam/docs/access-change-propagation.md.txt).

To create a new Privileged Access Manager entitlement, do the following:

1. Select **Grant temporary access**.
2. Click the applicable role to grant to view details about that role.
3. Click **Create entitlement.**

   In the **Create a new entitlement** pane, enter the details for the
   entitlement:
   1. Enter a name for the new entitlement.
   2. Select the maximum duration of the grant.
   3. Click **Next**.
   4. Optionally add more requesters for this entitlement.
   5. Click **Next**.
   6. Add at least one principal to approve entitlement requests or select **Activate access without approvals**.
   7. Click **Next**.
   8. Optionally enter the email addresses of any administrators that you want to notify.
   9. Click **Done** , and then click **Create entitlement**.

For more information about Privileged Access Manager, see
[Create entitlements in Privileged Access Manager](https://docs.cloud.google.com/iam/docs/pam-create-entitlements.md.txt).

If there isn't one role that contains all of the permissions required by the
user, no roles or entitlements are suggested.

For alternative methods of remediating the user's access, see
[Resolve allow policy permission errors](https://docs.cloud.google.com/iam/docs/resolve-permission-errors.md.txt#resolve-allow).

## Remediate deny policy

Deny policies are attached to a Google Cloud organization, folder, or project.
A deny policy contains deny rules, which identify principals and list the
permissions that the principals can't use.

The **Remediate deny policy** page shows the deny policy that prevents the user
from using the permission and suggests several methods for remediating the
user's access.

![The policy remediation summary page showing deny policy details.](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-deny.png)

![](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-deny.png)

The suggested methods for remediating access requests related to deny policies
include the following:

- [Exempt the user](https://docs.cloud.google.com/iam/docs/resolve-permission-errors.md.txt#deny-add-exception) from the deny policy.

- [Remove the permission](https://docs.cloud.google.com/iam/docs/resolve-permission-errors.md.txt#deny-remove-permission) from the deny policy.

- [Add the user to an existing exemption group](https://docs.cloud.google.com/iam/docs/resolve-permission-errors.md.txt#deny-add-exception).

- [Create a tag](https://docs.cloud.google.com/iam/docs/resolve-permission-errors.md.txt#deny-exclude-resource) to exclude the resource from the deny policy.

## Remediate Principal Access Boundary

By default, principals are eligible to access any Google Cloud resource.
However, if they're subject to any Principal Access Boundary policy, then they're
only eligible to access the resources listed in the Principal Access Boundary policies
that they're subject to. In these cases, a Principal Access Boundary policy might
prevent a principal from accessing a resource.

The **Remediate Principal Access Boundary** page shows the Principal Access Boundary policy that
prevents the user from accessing the resource and suggests several methods for
remediating the user's access.

![The policy remediation summary page showing Principal Access Boundary details.](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-pab.png)

![](https://docs.cloud.google.com/static/policy-intelligence/img/troubleshooter-remediate-pab.png)

The suggested methods for remediating access requests related to
Principal Access Boundary policies include the following:

- [Add the resource to an existing Principal Access Boundary policy](https://docs.cloud.google.com/iam/docs/resolve-permission-errors.md.txt#pab-new-policy) attached
  to a broader set of identities.

- [Add the resource to a Principal Access Boundary policy that's attached to the user
  who needs access](https://docs.cloud.google.com/iam/docs/resolve-permission-errors#pab-new-policy).

- Not recommended: [exempt the identity](https://docs.cloud.google.com/iam/docs/resolve-permission-errors.md.txt#pab-condition) from Principal Access Boundary
  enforcement.

## What's next

- Use the [permissions reference](https://docs.cloud.google.com/iam/docs/permissions-reference) or the [predefined roles reference](https://docs.cloud.google.com/iam/docs/roles-permissions.md.txt) to determine which role to grant to a user who is missing permissions.
- Read about the other [Policy Intelligence
  tools](https://docs.cloud.google.com/policy-intelligence/docs/overview), which help you understand and manage your policies to proactively improve your security configuration.