Permission to ask, and trust to enter
How AssumeRole uses caller permissions and role trust to issue temporary credentials for role switching and cross-account access, with permissions and duration bounded by the role session. · associate
AssumeRole lets an authenticated caller obtain temporary credentials for an IAM role. Use it to switch responsibilities within an account or access another account without sharing that account's long-term credentials.
For cross-account access, both sides must authorize the request. The caller needs permission for sts:AssumeRole on the target role ARN. The target role's trust policy must allow that caller to assume it. Granting only one side is not enough.
Trust conditions, such as an MFA requirement or an external ID, must also be satisfied, and applicable explicit denies still block access. Within one account, a trust policy that directly names an IAM user can grant assumption without a separate identity-policy allow; do not apply that exception to cross-account access.
| Authorization | Where it applies | Question answered |
|---|---|---|
| Caller permission | Calling identity | May I assume this role? |
| Role trust policy | Target role | May this caller enter? |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.