In most AWS organisations nobody can answer, from one report, which IAM Identity Center permission sets grant administrator power, which people and groups hold them, and in which accounts. The answer is spread across permission set definitions, account assignments, identity store group memberships and the IAM roles that Identity Center provisions in every member account. This guide gives cloud security and IAM teams a repeatable audit: how to collect that data with read-only API calls, how to classify a permission set as admin, how to expand group assignments to real people, and what to fix and monitor afterwards. It assumes Identity Center is already in place; for setup and the hardening baseline see the AWS IAM Identity Center Guide.
Key takeaways
- Audit three joins, not one list: permission set to policies, permission set to accounts and principals, and group to members. Admin exposure only becomes visible when all three are joined.
- Classify admin by effective policy content, not by the permission set name. A set called "ReadOnly" with an inline
iam:*statement is an admin set. - The management account is a separate case. AWS states that a delegated administrator cannot alter permission sets provisioned in the management account, so that account needs its own review owner and its own evidence.
- Provisioned roles drift from definitions. Each assignment creates an
AWSReservedSSO_role per account; compare what is provisioned against what is defined, and treat out-of-band edits to those roles as findings. - Make it continuous: after the first baseline, alert on
CreateAccountAssignment,PutInlinePolicyToPermissionSetandAttachManagedPolicyToPermissionSetevents so the next audit is a diff rather than a project.
What you are actually auditing
A permission set is, in AWS's words, a template that defines one or more IAM policies and is used to assign AWS account access to users and groups. When a permission set is assigned to an account, Identity Center creates an IAM role in that account and attaches the set's policies to it. The role name follows the pattern AWSReservedSSO_<permission-set-name>_<unique-suffix> under the path /aws-reserved/sso.amazonaws.com/, with a Region segment added when the identity source is outside us-east-1.
A permission set can carry five kinds of policy content, and an audit must read all of them:
| Policy element | Read-only API to collect it | Audit note |
|---|---|---|
| AWS managed policies (including job function policies) | ListManagedPoliciesInPermissionSet | Flag AdministratorAccess, PowerUserAccess and IAMFullAccess by name |
| Customer managed policy references | ListCustomerManagedPolicyReferencesInPermissionSet | Only a name and path are stored; the policy itself lives in each member account and can differ per account |
| Inline policy | GetInlinePolicyForPermissionSet | Most common hiding place for wildcard statements |
| Permissions boundary | GetPermissionsBoundaryForPermissionSet | Caps the effective permissions; record it, since a boundary can turn an apparent admin set into a limited one |
| Session duration and relay state | DescribePermissionSet | Session duration runs from 1 to 12 hours (default 1 hour) |
The customer managed reference is the subtle one. Because Identity Center stores only the policy name and path, the same permission set can grant different rights in different accounts if the local policies have diverged. Read the referenced policy in every account where the set is provisioned.
Step 1: collect the raw data
Run the collection from the management account or the delegated administrator account with a read-only role. ListAccountAssignmentsForPrincipal, for example, must be called from the organisation's management account instance. All calls below are read-only and map to the aws sso-admin, aws identitystore and aws organizations CLI namespaces.
- Instance:
ListInstancesto get the instance ARN and identity store ID. - Accounts: Organizations
ListAccounts, including suspended accounts, so you can spot assignments to accounts nobody uses. - Permission sets:
ListPermissionSets, then for each setDescribePermissionSetand the four policy calls in the table above. - Where each set lives:
ListAccountsForProvisionedPermissionSetper set, orListPermissionSetsProvisionedToAccountper account. - Who holds it:
ListAccountAssignmentsfor each account and permission set pair. Each result gives a principal ID and a principal type ofUSERorGROUP. - Group expansion: identity store
ListGroupMembershipsfor every group that appears, thenDescribeUserto resolve user IDs to user names and status. - Snapshot: write everything to a dated, write-once location (for example a versioned bucket with object lock) so the next audit can be diffed against it.
Every List call paginates with NextToken, and the API reference notes that fewer items than MaxResults can be returned even when more exist. Scripts that stop at the first page are the most common reason an audit undercounts admin holders.
Step 2: classify which permission sets are admin
Use a written rubric so two reviewers reach the same answer. The table below is a starting rubric; adjust the middle tier to your own risk appetite, but keep the criteria explicit.
| Tier | Criteria (any one is enough) | Review cadence |
|---|---|---|
| Tier 0: full admin | AdministratorAccess attached; any statement with "Action": "*" and "Resource": "*"; no permissions boundary | Monthly, named owner per assignment |
| Tier 1: privilege escalation capable | IAMFullAccess; iam:*; iam:PassRole on *; iam:CreatePolicyVersion, iam:AttachRolePolicy or iam:PutRolePolicy; sts:AssumeRole on *; organizations:*; sso:* or identitystore:* | Monthly |
| Tier 2: broad operational | PowerUserAccess; service-wide wildcards such as ec2:*, s3:* or kms:* on * | Quarterly |
| Tier 3: scoped | Named actions on named resources, or job function policies such as read-only | Half-yearly or at joiner, mover and leaver events |
Tier 1 matters because a set that can write IAM policies or pass any role can make itself Tier 0. Sets that grant sso:* or identitystore:* in the management or delegated administrator account are especially sensitive: they can create assignments for anyone. The How to find AWS IAM policies with wildcard actions guide covers wildcard detection in more depth, and the AWS IAM Permissions Boundaries Guide explains how a boundary changes the effective result.
Step 3: expand assignments to people and accounts
Join the data into one row per human, per account, per permission set, with the path that grants it (direct, or through which group). That table is the core audit artefact. Two practical points:
- Direct and group paths both count:
ListAccountAssignmentsForPrincipalreturns assignments for the principal you name. Do not assume a user query also returns what the user inherits through groups; query each group the user belongs to and merge the results. - Groups synced from an IdP: where groups come from an external identity provider through SCIM, membership in AWS reflects the last sync. Compare a sample of admin group memberships with the IdP itself, and record the owner of each group in the IdP, because that owner effectively controls AWS admin access.
Then produce three views from the same data: per permission set (how many accounts, how many humans), per account (who holds Tier 0 or Tier 1 there), and per person (total admin footprint). The per-person view usually finds the surprises, such as one engineer with Tier 0 in forty accounts through three overlapping groups.
| Finding | Why it matters | Typical fix |
|---|---|---|
| Tier 0 assigned to a large or broad group (for example "Engineering") | Every member, and whoever controls group membership, holds admin | Move to a small dedicated admin group with an owner and joiner approval |
| Admin assigned directly to users in member accounts | Bypasses group lifecycle, often survives leavers | Replace with group assignment, except where AWS recommends direct assignment (management account) |
| Assignments to suspended or closed accounts | Stale access that nobody reviews | Delete the assignment; record the account status |
| Disabled or deleted IdP user still a member of an admin group | Sync gap or manual identity store entry | Remove membership; investigate how the entry was created |
| Tier 0 set with 12-hour session duration | Long-lived admin sessions widen the window if a session is stolen | Reduce duration; AWS advises not setting it longer than needed |
| Customer managed policy differs between accounts | Same set, different power, inconsistent review | Deploy the policy from one source (for example StackSets or Terraform) and diff per account |
Step 4: check the management account and delegated administration
The management account deserves its own section of the audit report. AWS documents that only the management account can manage permission sets provisioned in the management account, enable or delete Identity Center, and register or deregister the delegated administrator, and that a delegated administrator cannot alter permission sets provisioned in the management account. AWS's delegated administration page also advises assigning users directly, rather than groups, to management account permission sets.
- List every assignment in the management account and confirm each is a named individual with a current business need.
- Check who can act as Identity Center administrator in the delegated administrator account: any permission set there with
sso:*,sso-directory:*oridentitystore:*is effectively Tier 0 for the whole organisation. - Review the SCPs that AWS suggests for limiting identity store writes (for example denying
identitystore:CreateGroupMembership) and confirm they are attached where intended. See the AWS Organizations and SCPs Guide. - Record break-glass access separately: IAM users or roles kept outside Identity Center for emergencies are part of the admin population even though they never appear in an assignment list.
Step 5: compare provisioned roles with definitions
Identity Center updates the roles and policies when you modify a permission set, but a change is only applied to an account once the set is provisioned there. Use ListPermissionSetProvisioningStatus to find failed or pending provisioning, then in each member account list roles under the /aws-reserved/sso.amazonaws.com/ path and compare their attached and inline policies with the permission set definition. Differences are findings: either provisioning has not run, or someone has edited a reserved role directly.
Two lifecycle facts from AWS documentation shape this step. Deleting all assignments for a permission set in an account deletes the role, and a later assignment creates a new role with a different suffix. Trust policies, KMS key policies and the EKS aws-auth ConfigMap that reference the old exact ARN then stop matching. AWS suggests an ArnLike condition with a wildcard suffix. While auditing, search resource policies for AWSReservedSSO_ references: each one is an extra path by which a permission set grants access beyond its own policies.
Step 6: test least privilege with usage data
IAM last accessed information shows which services a role's identity-based policies allow and when each was last used. AWS states service-level data covers at least 400 days, action-level data covers management actions for supported services, and activity appears within about four hours. Pull it for each AWSReservedSSO_ role holding a Tier 0 or Tier 1 set. Two caveats from the same documentation: the reports do not account for SCPs, permissions boundaries or session policies, and iam:PassRole is not tracked, so a quiet PassRole grant can still be live. Where a Tier 0 set is used for a handful of services, propose a scoped replacement; the How to Write Least-Privilege IAM Policies From Access Activity guide covers the method.
Remediation and rollout
Admin changes break things, so stage them.
- Agree the rubric and owners with platform and account owners before publishing findings.
- Fix the zero-risk items first: assignments to suspended accounts, leavers in admin groups, failed provisioning.
- Pilot replacements: create the scoped permission set alongside the old one, assign it to a small group in non-production accounts, and keep the old assignment for a fixed overlap window (for example two weeks).
- Watch for denials in CloudTrail (
errorCodeofAccessDeniedfrom the new role) during the pilot and adjust. - Remove the old assignment with
DeleteAccountAssignment. Rollback is re-creating the assignment; keep the exact principal, account and permission set ARN in the change record so it can be restored quickly, and remember the role suffix will change. - Move admin to just-in-time where possible, so standing Tier 0 assignments shrink to break-glass only.
Small vs large estates: with under twenty accounts a scripted CSV and a spreadsheet review is enough. Across hundreds of accounts, load the snapshot into a queryable store (Athena or a graph database), keep permission sets as code, and run the diff on a schedule.
Detection and measurement
Identity Center API events use the sso.amazonaws.com event source; identity store changes use identitystore.amazonaws.com or sso-directory.amazonaws.com, and SCIM provisioning uses identitystore-scim.amazonaws.com. Send these to your SIEM from an organisation trail.
| Event name | Alert when |
|---|---|
CreateAccountAssignment | The permission set is Tier 0 or Tier 1, or the target is the management account |
AttachManagedPolicyToPermissionSet | The policy is AdministratorAccess, PowerUserAccess or IAMFullAccess |
PutInlinePolicyToPermissionSet | Any change outside the infrastructure-as-code pipeline identity |
DeletePermissionsBoundaryFromPermissionSet | Always: removing a boundary can raise effective rights |
CreateGroupMembership (identity store) | The group holds a Tier 0 or Tier 1 assignment |
ProvisionPermissionSet | Unexpected time or caller, as a correlation signal for the events above |
Metrics that show the audit is working:
- Tier 0 holders: number of distinct humans with standing Tier 0 in any account, tracked monthly.
- Tier 0 account coverage: average accounts per Tier 0 holder.
- Unreviewed admin assignments: Tier 0 and Tier 1 assignments without a named owner or past their review date.
- Out-of-band changes: permission set changes not made by the pipeline identity, per month.
- Drift: member accounts where provisioned reserved roles differ from the definition.
The AWS CloudTrail Guide covers organisation trails and retention.
Common failure patterns
- Trusting names: classifying "ReadOnly" or "Developer" sets without reading inline policies.
- Stopping at groups: reporting "the PlatformAdmins group" without expanding it, so the review approves a label rather than people.
- Forgetting the IdP: the person who owns an admin group in the external IdP can grant AWS admin without touching AWS, and is often outside the review.
- Single-account reading of customer managed policies: checking the referenced policy in one account and assuming the rest match.
- Ignoring paths outside Identity Center: IAM users, roles assigned through account access manager, and resource policies that name
AWSReservedSSO_roles. - One-off audits: a clean report that decays within weeks because no alerting watches new assignments.
Where identity fits
Pipelines and automation that manage permission sets are themselves privileged non-human identities: the role your Terraform or StackSets pipeline uses to call sso-admin can grant Tier 0 to anyone. Include those roles, and the secrets or OIDC trust that let a CI system assume them, in the audit population. The How to audit AWS IAM Roles Anywhere and OIDC identity providers guide covers the trust side.
Framework mapping
| Framework | Reference | How this audit supports it |
|---|---|---|
| NIST CSF 2.0 | PR.AA-05 | Entitlements defined, managed and reviewed with least privilege |
| NIST CSF 2.0 | DE.CM-03 | Monitoring of assignment and policy changes |
| NIST SP 800-53 Rev 5 | AC-2, AC-2(7), AC-6(5), AC-6(7) | Account management, privileged accounts, review of user privileges |
| NIST SP 800-53 Rev 5 | AU-6 | Review of Identity Center CloudTrail events |
| CIS Controls v8.1 | 5.4, 6.8 | Restrict administrator privileges; role-based access control |
| ISO/IEC 27001:2022 Annex A | 5.18, 8.2 | Access rights; privileged access rights |
| MITRE ATT&CK | T1098.003, T1078.004 | Additional Cloud Roles; Cloud Accounts |
Practitioner checklist
- Collect permission sets, all policy elements, assignments and group memberships with paginated read-only calls.
- Classify every set against a written Tier 0 to Tier 3 rubric based on policy content and boundaries.
- Expand groups to individuals and produce per-set, per-account and per-person views.
- Review the management account and delegated administrator account separately, with named owners.
- Read customer managed policies in every account where they are referenced.
- Diff provisioned
AWSReservedSSO_roles against definitions and resolve failed provisioning. - Search resource policies for references to reserved roles.
- Pilot scoped replacements with an overlap window and a recorded rollback.
- Alert on admin-relevant Identity Center and identity store events.
- Store dated snapshots and report Tier 0 metrics monthly.
Standards and references
- AWS: IAM Identity Center permission sets
- AWS: Referencing permission sets in resource policies and key policies
- AWS: IAM Identity Center delegated administration
- AWS: ListAccountAssignmentsForPrincipal API reference
- AWS: IAM Identity Center information in CloudTrail
- AWS: Set session duration for permission sets
- AWS: Refine permissions using last accessed information
- NIST: SP 800-53 Rev 5 Security and Privacy Controls
Related NHI Mgmt Group resources: AWS IAM Identity Center Guide · AWS Organizations and SCPs Guide · How to find AWS IAM policies with wildcard actions · Access Reviews Guide