AWS Account Access Manager: Testing Entitlement Boundaries With Two Accounts
Account access manager assigns your own IAM roles to Identity Center users, but the entitlement lives in the management account while the gate stays in the member account. Two users, two accounts, and CloudTrail prove whether the two agree.

AWS Account Access Manager: Testing Entitlement Boundaries With Two Accounts
TL;DR
Account access manager assigns your existing IAM roles in individual AWS accounts to IAM Identity Center users and groups, keeping each role's trust policy, tags, and path intact while centralizing who gets it. That makes the entitlement a new authorization boundary, and boundaries need testing. Three questions decide whether it holds: does the entitlement actually gate assumption of the role, does the propagated user identity survive a role chain, and does deleting an entitlement reach credentials that are already cached on a laptop. Two accounts, two users, and one CloudTrail query answer all three.
What this is
An entitlement is a record saying a specific user or group may assume a specific IAM role in a specific AWS account. An administrator creates it in the management account; the user redeems it through the Identity Center portal, the account access manager application portal, or aws login from the command line. The feature exposes its own account-access API namespace, separate from the IAM API, with its own permissions and its own CloudTrail events.
The property worth testing is that administration and enforcement now live in different places. The entitlement is a control-plane object in the management account. The gate is still the role's trust policy in the member account, and the session is still an ordinary STS assume. Nothing about the new console makes a member-account trust policy stricter — it adds a second way to hand out the role and a new place for the two records to disagree.
So this is authorization testing with a central twist. You are not asking "can this principal call this action." You are asking "does the entitlement layer agree with the trust layer, and what does the log show when they don't."
Why it matters
Three failure modes are worth an afternoon each.
The map and the gate diverge. Organizations that federated into each account separately built trust policies that trust the whole organization, or a broad Identity Center principal, or a wildcard with a condition on the IdP. Those policies are still deployed. A user with no entitlement can reach the role anyway if any other path exists: a permission set that grants sts:AssumeRole, a CI role, or a chained role whose trust policy trusts the account root. The console shows a clean list of who should have access. The member account was never told.
Attribution stops at the first hop. The claim is that user context rides on the session, so actions attribute to the individual even when a role is shared. That is true of the session the entitlement produced. The moment that session calls sts:AssumeRole into a second role, you have a new session with a new principal, and whether the source identity travels with it is a question for the logs, not for the announcement.
Detections keyed on the old shape go quiet. Teams that have run Identity Center for years alert on session names beginning with AWSReservedSSO_ and on permission-set ARNs. Assigning member-account roles directly produces different principals and different session strings. A rule that silently stops matching is the same class of problem as an allowlist that fails open — it is a finding, not a cleanup task.
How it works
Prerequisites are an organization instance of IAM Identity Center, users and groups already synchronized from your corporate IdP through SCIM, the roles present in each member account with whatever trust policy you wrote, and the feature enabled in the management account. Adoption is independent: it runs on its own or alongside permission sets, using the same synchronized identities.
Access then flows through Identity Center and carries the user's identity as trusted identity propagation. The role keeps its IAM primitives — trust-policy conditions such as network source, IdP-asserted claims like department or group membership, role tags, session tags populated from SAML claims, and role paths for grouping. On the command line, aws login requires AWS CLI v2.36.0 or newer according to the AWS announcement linked in Sources.
Build the test rig before you read further:
- Two accounts in one organization: a target account holding the role, and a control account for the chained-role test.
- One role in the target account, for example
arn:aws:iam::111111111111:role/Research/DataReader, whose trust policy carries a condition you actually rely on. - Two Identity Center users in different groups:
aliceentitled to that role,bobnot entitled to it. - An organization CloudTrail trail with management events on, in both accounts.
- Two CLI profiles, one per user, plus a second network for the condition test.
Test A — does the entitlement gate assumption? Bob runs aws login, then aws sts assume-role --role-arn arn:aws:iam::111111111111:role/Research/DataReader --role-session-name bob-direct. Alice runs the identical command. Compare the responses. Bob should get AccessDenied and Alice should get credentials. Anything else is the finding: Bob succeeding outright, Bob succeeding only after first assuming a permission-set role, or Bob getting a different error class than Alice, which tells you a different code path evaluated the request.
Test B — do trust-policy conditions still evaluate? Give the role a trust policy requiring an IdP-asserted claim, for example aws:PrincipalTag/department equal to finance, and log Alice in with an IdP that asserts department=engineering. Attempt the assume. Then retry with explicitly supplied session tags on the call. If the entitlement path lets the caller set the tag that satisfies the trust condition, you have an authorization bypass, not a misconfiguration. Record the errorCode from each attempt so you can tell "condition evaluated and denied" apart from "condition never evaluated."
Test C — does identity survive chaining? From Alice's entitled session, assume a role in the control account whose trust policy trusts arn:aws:iam::111111111111:root. This will often succeed, and that is IAM behaving as designed — it is not the vulnerability. The evidence is what the second event says. Pull both AssumeRole records and compare userIdentity.sessionContext.sourceIdentity and additionalEventData. If the chained event attributes only to the intermediate role with no user, your attribution is bounded at one hop, and every detection written against the two-hop assumption is wrong.
Test D — does revocation land? Delete Alice's entitlement, then immediately run a command using credentials already cached in her profile, and separately run aws login fresh. Note the timestamp each path stops working. Cached STS credentials stay valid until they expire regardless of entitlement state; the deliverable is the size of that window in your environment and whether incident response knows it exists.
Attach to the finding: a side-by-side table of both users' commands and responses with timestamps, plus raw CloudTrail JSON for each event — eventTime, eventName, userIdentity.arn, userIdentity.sessionContext.sourceIdentity, additionalEventData, errorCode. Redact account IDs if you publish.
Detection and response

Three telemetry sources matter. First, account-access API events in CloudTrail record entitlement creation and deletion — treat entitlement creation as a privilege grant with the same severity you give AttachRolePolicy, because that is what it is. Second, sts:AssumeRole events in each member account are the sessions themselves. Third, the aws login credential cache on endpoint disks, which is a file and not a log, and is the reason revocation has a tail.
What a defender should check, in order:
- For each role, list the distinct principals that assumed it in the last 30 days, before and after rollout. Principals you cannot map back to an entitlement are the finding.
- Verify the session-name and principal-ARN shape from a real event rather than from documentation, then rebuild detections. Run the old
AWSReservedSSO_pattern and the new one in parallel until you have confirmed coverage. - Join assumption events against the entitlement list on a schedule. The gap between the two is your true exposure.
- Measure revocation lag once, deliberately, and write the number into the incident response runbook so nobody promises access is gone before it is.
What to do
- Inventory every trust policy in member accounts that trusts the organization root, the Identity Center principal, or a wildcard with an IdP condition. That list is your real access path set, independent of entitlements.
- Run Test A with two users and one role. Save both responses verbatim.
- Run Test B against every role whose trust policy carries an attribute or network condition.
- Run Test C once per role-chaining path your teams actually use, and record whether
sourceIdentityfollows. - Run Test D and time the revocation window, including cached credentials.
- Diff the 30-day principal baseline for your highest-value roles against the entitlement list.
- Fix the answer, not the symptom: tighten trust policies to the specific federated principal where you can, and remove standing
sts:AssumeRolegrants that make entitlements advisory. - Re-run Tests A through D after the fix and attach the new responses to the same finding so a second researcher can check your work. If it isn't reproducible, it isn't a finding.
FAQ
Does account access manager replace permission sets? No. You can adopt it on its own or alongside permission sets, and both draw on the same users and groups synchronized from your IdP. What changes is where the role assignment is recorded, not whether permission sets exist.
What is the fastest test for entitlement enforcement? One role, two users, one of them entitled, the same assume-role command from the same network. The response diff is the evidence, and it takes minutes.
Why does role chaining break attribution? Because the second hop is an ordinary sts:AssumeRole performed by the first session's role, producing a new session with a new principal. Whether the original user's identity appears on that second event is an implementation detail you have to verify per path, not a guarantee that carries across any number of hops.
Does deleting an entitlement terminate an active session? Not immediately. Credentials already issued remain valid until they expire, and credentials cached by aws login sit on disk. Test the actual window in your own environment rather than assuming either instant or never.
Is a legacy trust policy that trusts the organization actually exploitable? Only if a path to assumption exists for a user who should not have the role — a permission set, a chained role, a CI principal. That is exactly what Test A establishes, and it is why the inherited trust-policy inventory should come before anything else.
What does a reviewer need to accept the finding? The two commands, the two responses with timestamps, and the matching CloudTrail events. Not a screenshot of a console list.
Sources
- AWS Security Blog: Introducing AWS account access manager — https://aws.amazon.com/blogs/security/introducing-aws-account-access-manager-iam-role-flexibility-with-centralized-workforce-access/
- AWS IAM Identity Center: trusted identity propagation — https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation.html
- AWS CloudTrail: user identity element reference — https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html
- OWASP Web Security Testing Guide: Authorization Testing — https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/05-Authorization_Testing/
- Trusteed on attack surface and finding validation — https://trusteed.io