Sub topic 13
The full evaluation flow, step by step
This chapter assumes you know the earlier pieces: identity policies, resource policies, permission boundaries, session policies, SCPs, and the rule that an explicit deny beats an allow. Here we combine them into one decision procedure.
One decision, many policies
For each request, AWS gathers every policy that applies and produces one of two results: allow or deny. Each policy type plays one of two roles:
- Limits: SCPs, resource control policies (RCPs), VPC endpoint policies, permission boundaries, and session policies. They grant nothing. They only remove permissions.
- Grants: identity-based policies and resource-based policies. They supply the actual allow.
A request succeeds only if no policy denies it, every limit that applies permits it, and a grant exists.
The flow
Read the steps in order:
- Explicit deny. AWS checks every applicable policy for a matching
Deny. One match ends the evaluation. - Organization limits. If the account belongs to an organization, an SCP must allow the action. An RCP, where one applies, must also allow it. The default
FullAWSAccessSCP allows everything, so you notice SCPs only when someone narrows them. - Grant. A resource-based policy or an identity-based policy must allow the action.
- Boundary and session policy. If the principal has a permission boundary or a session policy, each must also allow the action.
- Default. If nothing denied and every check passed, the request is allowed. Otherwise the implicit deny stands.
A VPC endpoint policy is one more limit, and it applies only to requests that travel through that endpoint.
Same account versus cross account
In the same account, an allow in either the identity policy or the resource policy is enough. One exception is a resource policy that names an IAM user or role ARN directly. That allow works even if the identity policy is silent, and a permission boundary does not limit it.
Across accounts, both sides must agree. The requester's identity policy must allow the action, and the resource policy in the other account must allow that principal. The requester's SCPs and boundary still apply, because the principal belongs to the requester's account.
Worked example
A role in account 222233334444 reads an object from a bucket in 111122223333. The role has an identity policy allowing s3:* and a boundary allowing only s3:GetObject and s3:PutObject.
| Request | Result | Reason |
|---|---|---|
| `s3:GetObject` | Allowed | The identity policy, boundary, and bucket policy all allow it. |
| `s3:DeleteObject` | Denied | The boundary does not include it, so the implicit deny stands. |
| `s3:GetObject` over HTTP | Denied | A bucket policy `Deny` on `aws:SecureTransport` is false matches, and a deny always wins. |
Check the second row yourself with the policy simulator:
aws iam simulate-principal-policy \
--policy-source-arn arn:aws:iam::222233334444:role/ReportReader \
--action-names s3:GetObject s3:DeleteObject \
--resource-arns arn:aws:s3:::example-reports-bucket/2026/summary.csvThe simulator reports implicitDeny for s3:DeleteObject, and the output lists which policies matched.
Common mistakes
- Adding an Allow to fix a denial that comes from an explicit Deny. No allow can override it.
- Forgetting the boundary. The identity policy looks correct, but the boundary quietly removes the action.
- Fixing only one account in a cross-account request.
Exercise
A role has an identity policy allowing s3:PutObject on a bucket. Its permission boundary allows only s3:GetObject. The bucket policy has no statements about this role. Is s3:PutObject allowed, and which step of the flow decides it?
Show answer
It is denied. The identity policy grants the action, but the permission boundary does not allow it, so the check in step 4 fails and the implicit deny stands. The bucket policy would not rescue it because it grants nothing to the role.