Interview Prep/AWS/IAM, Organizations and Multi-Account

A cross-account role assumption fails with AccessDenied even though the target role trusts the source account. What do you check?

IntermediateScenarioIAM, Organizations and Multi-Account
Answer

Situation read → Both sides must allow it: the target trust policy and an identity policy on the caller granting sts:AssumeRole.

What I'd do →

  1. Check the role's trust policy principal and any Condition such as sts:ExternalId or aws:PrincipalOrgID
  2. Check the caller's identity policy allows sts:AssumeRole on the exact role ARN
  3. Check no SCP or permissions boundary blocks it
  4. Retry: aws sts assume-role --role-arn arn:aws:iam::222222222222:role/deploy --role-session-name test and read the error text

Why → Cross-account needs an allow on both sides, whereas same-account trust can be satisfied by one.

Interview tip → Mention that a trust principal of the account root only delegates; the caller still needs its own allow.

aws All AWS questions Roadmap: AWS core services

More on IAM, Organizations and Multi-Account