cross account access denied
iam-access-denied-layer-analysisSend the denied call and every policy around it: identity policies, resource or trust policy, KMS key policy, permissions boundary, SCP and RCP levels. Evaluates them together the way IAM does, same account or cross account, including the hidden KMS request. Returns the blocking layer and statement, statements that almost matched and why, and the minimal statement to add at each layer. Use when the error reads: AccessDenied | is not authorized to perform: on resource: | with an explicit deny in a policy | because no policy allows the action | User: is not authorized to perform: sts:AssumeRole | KMS.AccessDeniedException. Covers: Evaluates supplied JSON policies for one principal, action and resource. Does not read live accounts and does not evaluate VPC endpoint policies, S3 ACLs, KMS grants or Lake Formation. Price: 10.00 USDC on Base via x402, charged only when the case is solved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request": "<request>",
"identity_policies": "<identity_policies>"
},
"name": "iam-access-denied-layer-analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kms | No | The KMS key that encrypts the resource. The principal needs these KMS actions as well. | |
| request | Yes | ||
| rcp_levels | No | Organization policies, one array per level from the root down to the account. Every level must allow. | |
| scp_levels | No | Organization policies, one array per level from the root down to the account. Every level must allow. | |
| error_message | No | ||
| session_policy | No | An IAM policy document as JSON. | |
| resource_policy | No | Bucket policy, queue policy, key policy, secret policy, or the role trust policy for sts:AssumeRole. Omit if the resource has none. | |
| identity_policies | Yes | Every managed and inline policy attached to the role or user (and its groups). | |
| permissions_boundary | No | An IAM policy document as JSON. |