Sub topic 11
Designing groups and permission sets that scale
This chapter assumes you know how a permission set, a principal, and an account combine into an account assignment. It also assumes you can run AWS CLI commands against the management account or a delegated administrator account.
Assign groups, not users
An account assignment can target a user or a group. Always target a group. Each assignment creates and maintains a role in one account. If you assign 200 users individually across 50 accounts, you manage up to 10,000 assignments. If you assign 4 groups across the same accounts, you manage at most 200. When someone joins or leaves a team, you change one group membership and no assignments.
Groups come from your identity source. With an external identity provider, synchronize groups through SCIM (System for Cross-domain Identity Management) so that membership changes flow in automatically. Do not recreate those groups by hand in Identity Center.
Separate who from what
Two independent lists keep the design small:
- Permission sets describe what someone can do:
ReadOnlyAuditor,PowerUser,BillingViewer,PlatformAdmin. - Groups describe who needs it, and where.
Name each permission set after a job function, not a team or an account. A set named AppTeamAProdAdmin cannot be reused. A set named PowerUser can be assigned to many groups.
Name groups so the target is visible. A common pattern is <scope>-<function>:
| Group | Permission set | Target accounts |
|---|---|---|
| `auditors` | `ReadOnlyAuditor` | All accounts |
| `platform-admins` | `PlatformAdmin` | Shared services and sandbox OUs |
| `payments-devs` | `PowerUser` | Payments dev and test accounts |
| `payments-oncall` | `PlatformAdmin` | Payments prod accounts |
Keep permission sets few and general
Each permission set becomes one role per account where it is assigned. A large catalog is hard to review. Start with a small set of broad job functions. Add a new permission set only when the permissions really differ. If two sets differ only by tag conditions, use attribute-based access control instead (a later chapter).
Separate environments by group, not by permission set. Using the same PowerUser set for dev and prod is fine. What differs is which group is assigned to which accounts, so production access stays a smaller, audited group.
Create a group
If you use the Identity Center directory, you can create groups from the CLI:
IDENTITY_STORE_ID=$(aws sso-admin list-instances \
--query 'Instances[0].IdentityStoreId' --output text)
aws identitystore create-group \
--identity-store-id "$IDENTITY_STORE_ID" \
--display-name "payments-oncall" \
--description "On-call engineers for payments production"Exercise
A company has 30 accounts and 6 teams. Each team needs developer access to its own two non-production accounts and read-only access to all accounts for a separate auditor team. How many permission sets and groups does a group-based design need at minimum, and why?
Show answer
Two permission sets (a developer set such as PowerUser and ReadOnlyAuditor) and seven groups (one developer group per team, plus one auditors group). Each developer group is assigned the developer set on its two accounts, and the auditors group is assigned ReadOnlyAuditor on all accounts. Permission sets describe job functions and are reused, while groups carry the who-and-where.