Learning center

Explain why one AWS role session has fewer permissions

When two sessions of one role get different results, inspect the STS call that issued each one. An inline or managed session policy passed when a role is assumed can narrow the role's identity-policy permissions for that session.

Suppose the fictional role ReportsReader allows reading objects under daily/ and monthly/. The daily job assumes it with a session policy scoped to daily/. The monthly job accidentally starts using the same session configuration and its GetObject on monthly/summary.csv fails. Compare the failed call's session with the issuer's recorded request or the pinned job configuration that supplied Policy or PolicyArns. Read the policy artifacts through the credential broker's usual audit path. Share the policy revision and relevant scope, leaving the issued credentials out of the receipt. STS AssumeRole request parameters and policy intersection

Changing the role's grant for monthly objects would leave the daily-only session policy in effect. If the monthly job is approved for monthly reads, review the intended session configuration with its owner. Historical role policy alone cannot reconstruct the effective permissions of an expired session.

Trace another denied request.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading