Sub topic 2
Connecting Identity Center to AWS Organizations
This chapter assumes you know the AWS Organizations basics (management account, member accounts, OUs) and can run AWS CLI commands. It covers what the connection to Organizations gives you and how to check it.
Why the connection matters
IAM Identity Center can run as an organization instance or as an account instance. Only the organization instance can assign permission sets to many AWS accounts, so this tutorial uses it. An organization has at most one organization instance.
The organization instance depends on Organizations in three ways:
- The organization must have all features enabled. An organization limited to consolidated billing cannot use it.
- You enable Identity Center from the management account. This turns on trusted access for the
sso.amazonaws.comservice principal and creates a service-linked role. - Identity Center reads the list of accounts from Organizations. You never register accounts with Identity Center yourself.
Identity Center runs in one AWS Region that you choose when you enable it. Pick the Region deliberately, because changing it later means recreating the instance.
Verify the connection
These commands, run in the management account, confirm each part of the setup.
# Expect "ALL"
aws organizations describe-organization \
--query 'Organization.FeatureSet' --output text
# Expect an entry for sso.amazonaws.com
aws organizations list-aws-service-access-for-organization \
--query 'EnabledServicePrincipals[?ServicePrincipal==`sso.amazonaws.com`]'
# Shows the instance ARN and identity store ID
aws sso-admin list-instances
# Accounts Identity Center can assign to
aws organizations list-accounts \
--query 'Accounts[?Status==`ACTIVE`].[Id,Name]' --output tableIf list-instances returns an empty list, Identity Center is not enabled in the Region your CLI is using. Check --region before assuming it is missing.
What follows from this design
- New accounts appear automatically. An account created or invited into the organization shows up as a target without extra setup.
- Assignments belong to accounts, not OUs. Moving an account to another OU does not change its assignments. Assigning access to every account in an OU means looping over the accounts, as a later chapter shows.
- Permission sets live at the instance level. You define a permission set once. It becomes IAM roles in an account only when you assign it there.
- Suspended or closed accounts cannot receive assignments.
Exercise
A teammate says they moved an account from the Sandbox OU to the Production OU, and an auditor group that was assigned to every Sandbox account can still sign in to it. Is this a bug?
Show answer
No. Assignments are made per account, not per OU, so the existing assignment stays on that account when it moves. To remove the auditor's access, delete the account assignment. To grant Production-wide access, assign the permission set to the other accounts in that OU.
Exercise
Running aws sso-admin list-instances in the management account returns an empty list, but your team enabled Identity Center last week. What is the most likely cause?
Show answer
The CLI is pointed at a different Region from the one where Identity Center was enabled. Run the command again with --region set to the Identity Center Region.