Updated on 2025-11-07 GMT+08:00

Checking New Access Granted by Policies

You can run a check on a custom policy to determine whether your updated policy grants new access compared to the original one. If the modified permissions grant new access and you do not intend to grant it, update the policy and click Check Policy until no new access is detected. If you intend to grant the new access, check that the policy meets your requirements and save the policy.

When using the JSON policy editor to edit policies on the IAM console, you can check identity policies as well as the trust policies of and trust agencies.

Constraints

  • A policy with only deny statements cannot be used to check for new access.
  • The check cannot run on policies with syntax errors.

Checking Whether Identity Policies Grant New Access

  1. In the navigation pane of the IAM console, click Identity Policies.
  2. Click the name of the target custom identity policy.
  3. On the Policy Content tab, click Edit to edit the details about the identity policy.

    Figure 1 Modifying a custom identity policy

  4. Modify the custom identity policy as required. At the lower right corner of the displayed page, click Check for New Access.
  5. Click Check Policy to view the findings.

    Figure 2 Checking an identity policy

    If new access is detected and you do not intend to grant it, update the identity policy and click Check Policy until no new access is detected.

Checking Whether Trust Policies Grant New Access

  1. Log in to the new IAM console.
  2. In the navigation pane, choose Agencies. Locate the target agency and click Modify in the Operation column.

    Figure 3 Modifying a trust agency

  3. In the lower part of the Basic Information page, locate the Trust Policy tab and click Edit Trust Policy.

    Figure 4 Editing a trust policy

  4. At the lower right corner of the displayed page, click Check for New Access.
  5. Click Check Policy to view the findings.

    Figure 5 Previewing external access

    If new access is detected and you do not intend to grant it, update the trust policy and click Check Policy until no new access is detected.