IAM policy layers and boundaries
Separate a grant from a limit
Imagine a reporting role in a fictional analytics account. Its identity policy permits reading reports and writing temporary output. A permissions boundary permits only reading reports. The role can therefore read but cannot write through its identity policy. A boundary sets a ceiling; it does not create access. An STS session policy can narrow the role’s permissions further for a particular session. Evaluate the requested action, resource and context, not merely whether a policy is attached.
Decision table and important exceptions
For an ordinary identity-policy grant with applicable ceilings, each ceiling must permit the request. An explicit deny in an applicable policy overrides an allow. No matching grant means implicit denial. The table below assumes a member-account role, no resource-policy grant, and already evaluated action/resource/context matches. It is not a universal IAM formula. In the same account, a resource policy granting directly to certain user or session principals can behave differently from a grant to a role ARN: implicit denial in a boundary or session policy is not always decisive. Explicit denial still applies; check the principal type, organization controls and any service-specific policy rules.
Grant | Boundary | Session | SCP | Explicit deny | Result yes | yes | yes | yes | no | allow yes | no | yes | yes | no | deny no | yes | yes | yes | no | deny yes | yes | yes | yes | yes | denyConditions and attribute-based access
ABAC uses attributes instead of maintaining a separate policy for every team. For a service and action supporting resource tags, compare aws:PrincipalTag/team with aws:ResourceTag/team in a condition. For example, a finance role should not read a resource tagged sales under this design. Missing tags must not silently grant access. Restrict who may set resource tags and session tags, and validate allowed tag keys and values. Conditions such as aws:RequestedRegion and aws:PrincipalOrgID have different meanings and availability in request context; review the condition operators, including missing-key behavior, rather than assuming a tag rule works everywhere.
Diagnose before changing permissions
For a denied report request, record the fictional caller, action, resource, account and conditions. Check whether a grant exists and which applicable ceiling or deny blocks it. If the role is allowed to read but not write, confirm whether that is the intended separation of duties before proposing a narrowly scoped change. Policy validation can flag syntax and security concerns; neither a successful validation nor an offline table proves live authorization.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
IAM policy layers and boundaries — knowledge check
Reason about synthetic multi-account authorization cases.
A role has a boundary permitting read, but no applicable identity grant. In the ordinary identity-only model, what happens?
What wins when an applicable policy explicitly denies an otherwise allowed read?
What can an STS session policy do to ordinary role permissions?
Why is a simple intersection model incomplete for IAM?
What protects a team-based ABAC design?