What Is AWS IAM Access Analyzer? Review External Sharing and Unused Permissions
AWS IAM Access Analyzer examines IAM policies to help identify resources shared outside a chosen boundary, principals that can access selected internal resources, and permissions that may be unused. Its findings indicate that access may be allowed by policy or may have gone unused for a period; they do not prove that an external party actually used a resource or that an account was compromised. Review findings alongside access logs and business context before changing a policy.
AWS IAM Access Analyzer examines IAM policies to help identify resources shared outside a chosen boundary, principals that can access selected internal resources, and permissions that may be unused. Its findings indicate that access may be allowed by policy or may have gone unused for a period; they do not prove that an external party actually used a resource or that an account was compromised. Review findings alongside access logs and business context before changing a policy.
This article follows official AWS IAM documentation checked on November 20, 2026. It explains external, internal, and unused access analysis and policy-generation features. It is specifically about AWS IAM Access Analyzer and does not assume that tools from other cloud providers work the same way.
What does Access Analyzer analyze?
Access Analyzer has several capabilities that answer different questions:
**External access analysis** chooses an AWS account or organization as a zone of trust and identifies resource-based policies that allow principals outside that boundary to access resources.
**Internal access analysis** identifies paths by which IAM users or roles inside the chosen account or organization can access selected resources. It evaluates the combined effect of applicable identity policies, resource policies, service control policies (SCPs), resource control policies (RCPs), and permissions boundaries. You select resources and configure a separate analyzer for this analysis.
**Unused access analysis** finds roles, permissions, IAM user access keys, or passwords that have not been used during a chosen observation period. It requires a separate unused-access analyzer.
**Policy validation and generation** check policy grammar and AWS recommendations, or draft a permissions policy from CloudTrail activity. These capabilities are different from continuously detecting external sharing.
Therefore, “Access Analyzer is enabled” does not mean every kind of analysis is active. Create the analyzer type and choose the scope that match the risk you want to review.
What does an external-access finding mean?
An external-access finding is generated when a resource-based policy grants access to a principal outside the selected zone of trust. AWS’s policy reasoning analyzes what access the policy permits. For example, if an S3 bucket policy grants object-reading access to an account outside the organization, the analyzer may flag that sharing whether or not anyone in the external account has actually used it.
Do not interpret this as “an outsider read the files.” Access Analyzer does not inspect access logs to make the external-access determination, and it does not know the users, roles, SCPs, or other settings inside the external account. To determine whether access actually occurred, inspect the relevant CloudTrail data events and other storage or application records. Conversely, the lack of a recorded use does not remove the policy-based exposure.
The zone-of-trust choice matters. If the organization is the boundary, sharing between member accounts may not be reported as external. If one account is the boundary, another account in the same organization can be outside it. Set the analyzer’s scope to match the trust boundary your security team intends to enforce.
How are unused-access analysis and policy generation different?
Unused-access analysis finds roles or permissions without use during the observation period and can support least-privilege reviews. Do not remove a permission just because it was not used in that window. Month-end processing, disaster recovery, or occasional deployments may be infrequent and absent from the period. Check with the owner, account for the work schedule, and plan a test or staged removal. Service-linked roles are excluded from unused-access analysis.
Policy generation reviews up to 90 days of CloudTrail activity for a selected IAM user or role and creates a policy template with services and, where supported, actions observed in that period. The generated template is not automatically a complete least-privilege policy. Legitimate actions not observed during the period can be missing, and action-level detail is not available for every service. AWS specifically documents that action-level activity for data events such as S3 data events and the iam:PassRole action are not included in generated policies. Policy generation is not a substitute for audit logging or security-incident auditing.
A practical review workflow
**Define the question and trust boundary.** Decide whether you are looking for external sharing, excess access inside the organization, or long-unused permissions. Choose an account or organization as the scope.
**Create the appropriate analyzers.** External and internal access analysis are regional features; enable an analyzer in each AWS Region where supported resources are used. AWS says unused-access findings do not vary by Region, so a separate analyzer in every Region is not required for that purpose.
**Read the finding details.** Check the resource, principal, policy statement, permissions, and conditions. Treat the finding as a policy-based access path, not proof of actual use.
**Validate with owners and logs.** Ask the resource owner whether sharing is intended. Use CloudTrail and service-specific data logs to investigate actual calls. Finding updates can be delayed, so do not decide that a change is complete based only on an immediate dashboard status.
**Make a narrow change and review again.** Remove an unintended principal or action, or narrow conditions. For unused permissions, confirm business cycles and recovery paths before reducing access in stages. Afterward, verify both that intended access still works and that unintended access is blocked.
**Track exceptions and decisions.** For intentional public or external sharing, document the owner, rationale, approval, and review or expiry date. Archiving a finding alone does not remove the permission.
Limits and common misunderstandings
**A finding is not an access log.** External analysis finds potential access allowed by policy. Check separate logs to determine whether access occurred.
**The analyzer cannot see the whole external account.** Its determination does not include the external account’s identities or restricting policies.
**Coverage has boundaries.** Check supported resource types and feature scope. External and internal analysis may need regional setup; internal analysis requires its own analyzer.
**Unused does not mean unnecessary.** Confirm the observation window covers infrequent jobs, recovery, and operational cycles.
**A generated policy is a draft.** Review actions not observed in CloudTrail, missing data-event action details, `iam:PassRole`, resource ARNs, and conditions before adopting it.
**Charges vary by feature.** AWS documents external-access analysis as free, while internal and unused-access analysis can incur usage-based charges. Check current pricing and scope before enabling them.
Summary
AWS IAM Access Analyzer helps review possible access paths, internal permissions, and unused access; it does not replace logs of actual access. External, internal, and unused-access analysis require different scopes and setup. CloudTrail-based policy generation produces a draft based on observed activity, so a person must review what was not observed. Define the trust boundary, validate findings against policies, owners, and actual call records, then make the narrowest safe change.
References
[AWS IAM Access Analyzer: capabilities and operation](https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html)
[AWS IAM Access Analyzer: finding types](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-findings.html)
[AWS IAM Access Analyzer: finding concepts and limitations](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-concepts.html)
[AWS IAM Access Analyzer: policy generation](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-generation.html)
[AWS IAM Access Analyzer: setup and regional scope](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-getting-started.html)