---
title: "Diagnose a cross-account AssumeRole denial | Proofline"
description: "If STS refused the role assumption, inspect the caller's ability to call sts:AssumeRole and the target role's trust policy."
url: https://proofline.sh/learn/aws-assume-role-trust-denied/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# Diagnose a cross-account AssumeRole denial

If STS refused the role assumption, inspect the caller's ability to call sts:AssumeRole and the target role's trust policy. Permissions attached to the target role govern work performed after assumption.

Permission errors The Proofline team November 24, 2026 1 min read

In an illustrative incident, account `111122223333` has a role named `LedgerJob` allowed to assume `arn:aws:iam::444455556666:role/LedgerReader`. A deployment changed its worker to use `LedgerJobV2`. The new role's policy allows the same STS call, while the target trust policy names only `LedgerJob`. An administrator can read the trust policy directly with `GetRole`.

```
aws iam get-role --role-name LedgerReader \
  --query 'Role.AssumeRolePolicyDocument'
```

Run that inspection in the target account. Compare the trusted principal and any conditions with the evidence from the failed STS call. If `LedgerJobV2` is the approved caller, ask the target account owner to review trust for that role and retain the applicable conditions. If the policy is already correct for the recorded principal, inspect the caller's limiting policies before expanding trust. [IAM cross-account evaluation](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic-cross-account.html) · [STS AssumeRole](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html) · [GetRole](https://docs.aws.amazon.com/IAM/latest/APIReference/API_GetRole.html)

[Trace another denied request](/learn/permission-denied-request-triage/).

## 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](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Trace a permission denial to the caller and the policy](/learn/permission-denied-request-triage/)
    
    Permission errors The Proofline team November 24, 2026 3 min read
    
-   ### [Explain why one AWS role session has fewer permissions](/learn/aws-sts-session-policy-denied/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
