# A cross-account trust on an SSO permission set grants the whole group

If you grant one person temporary access by trusting an SSO permission-set role, you've granted that access to everyone assigned to the permission set.

A requester in one AWS organization needed temporary access to a privileged role in another organization's account. The grant had two parts: a trust statement on the target role with an ArnLike on aws:PrincipalArn matching `AWSReservedSSO_<permission set>_*` from the source account, and an sts:AssumeRole on the target role ARN added to that permission set's inline policy.

It worked for the requester. Nobody checked who else held the permission set.

A read-only check the next day listed the account assignments and counted the group members. The permission set was assigned to a group of several dozen people.

IAM sees a permission set as one IAM role per account, shared by everyone assigned to it. The session carries no group or user identity in the role ARN, so aws:PrincipalArn on that role equals everyone in the group.

The per-person key is aws:userid, which ends with the session name (usually the user's email for SSO). Add `StringLike aws:userid "*:jane.doe@example.com"` next to the ArnLike.

The fix went into the procedure as a mandatory condition.

What looked like temporary access for one person was standing admin-like access for a whole group, with Billing and Savings Plans policies attached. It passes every functional test because the requester's own switch works. The same mistake hides in any cross-account trust that names an SSO-generated role, and it's easy to miss because the grant is reviewed from the requester's side only. Check the permission set's assignment list before trusting its role.
