Sub topic 2
Connecting Identity Center to AWS Organizations
This chapter assumes you know the basics of IAM roles and policies, the AWS Organizations structure (management account, member accounts, organizational units), and how to run AWS CLI commands. It covers what changes in your organization when you enable IAM Identity Center. It also covers how Identity Center learns which accounts exist, and what you must decide before you enable it.
Two kinds of Identity Center instances
IAM Identity Center can run in two forms:
- Organization instance. It is tied to an AWS Organization and enabled from the management account. It can assign access to every account in the organization. This is the form this tutorial uses.
- Account instance. It is tied to a single AWS account and supports only application access for that account. It cannot assign permission sets to accounts.
Permission sets across many accounts need an organization instance. An organization has one such instance at a time.
You can see the instance from the CLI. Run this in the management account or a delegated administrator account, in the Region where Identity Center is enabled:
aws sso-admin list-instances \
--query 'Instances[].{Arn:InstanceArn,Store:IdentityStoreId}' \
--output tableThe two values you get are used in nearly every later command. The instance ARN identifies the Identity Center instance for sso-admin calls. The identity store ID identifies the directory of users and groups for identitystore calls.
Requirements before you enable
Check these before you enable the service.
- All features must be enabled in the organization. An organization that only has consolidated billing cannot use Identity Center.
- You enable it from the management account. A member account cannot create the organization instance.
- You choose a Region. Identity Center runs in one Region, which is where you create and manage permission sets and assignments. You cannot move the instance to another Region later. You would have to delete it and rebuild everything. Choose a Region that your administrators and your identity provider can reach, and one that meets your data residency rules.
Check the first requirement like this:
aws organizations describe-organization \
--query 'Organization.FeatureSet' --output textThe expected output is ALL.
What enabling does to your organization
When you enable Identity Center from the management account, three things happen.
- Trusted access is turned on. Organizations records that the service principal
sso.amazonaws.comis allowed to read your organization's structure and act in its accounts. This is what lets Identity Center list accounts and OUs and create roles in member accounts. - A service-linked role is created. In the management account,
AWSServiceRoleForSSOis created. In member accounts, the service-linked role is created when Identity Center first needs it, for example when it provisions a permission set there. - The organization instance is created. It gets an instance ARN and a default identity store.
You can confirm trusted access with this command:
aws organizations list-aws-service-access-for-organization \
--query 'EnabledServicePrincipals[?ServicePrincipal==`sso.amazonaws.com`]'If the result is an empty list, Identity Center does not have trusted access. If you enabled the service from the console, this is rarely the case. It can happen when someone disabled trusted access from Organizations directly.
How Identity Center sees your accounts
Identity Center does not keep its own copy of your account list. It reads accounts from Organizations. The effects are:
- New accounts appear automatically. When you create or invite an account into the organization, it becomes a valid assignment target. No Identity Center registration step exists.
- Closed or removed accounts lose access. If an account leaves the organization, Identity Center can no longer provision to it, and its assignments stop being usable.
- Assignments target accounts, not OUs. Organizations lets you apply service control policies at the OU level, but Identity Center assignments are always made for one account at a time. Your tooling must walk the OU yourself. A later chapter covers how to do this at scale.
- Account status matters. Only active accounts can receive assignments. Suspended accounts are listed by Organizations but cannot be provisioned.
To list the account IDs that you could assign to, use Organizations:
aws organizations list-accounts \
--query 'Accounts[?Status==`ACTIVE`].[Id,Name]' \
--output tableTo see what is already assigned to one account, ask Identity Center. This call is per account and per permission set:
aws sso-admin list-account-assignments \
--instance-arn "$INSTANCE_ARN" \
--account-id 111122223333 \
--permission-set-arn "$PS_ARN"To find which permission sets are provisioned to an account at all, use list-permission-sets-provisioned-to-account with the same instance ARN and account ID.
What appears in member accounts
Identity Center is the only thing that talks to your member accounts for access. When a permission set is assigned to an account, Identity Center creates an IAM role there. You do not create or edit these roles yourself, and the chapter on provisioning explains them in detail. For now, two facts help you recognize them:
- The role name starts with
AWSReservedSSO_, followed by the permission set name and a suffix. - The role lives under the path
/aws-reserved/sso.amazonaws.com/. For an instance outsideus-east-1, the path also includes the Region name.
In a member account, this command lists the roles Identity Center created:
aws iam list-roles \
--path-prefix /aws-reserved/sso.amazonaws.com/ \
--query 'Roles[].RoleName' --output textAn empty result means no permission set has been provisioned to that account yet. It is also the first thing to check when someone says a permission set "isn't there".
Common problems at this layer
| Symptom | Likely cause | What to check |
|---|---|---|
| The Identity Center option is missing or offers only an account instance | You are signed in to a member account, or the organization lacks all features | Sign in to the management account and run `describe-organization` |
| `list-instances` returns an empty list | You are in the wrong Region | Switch to the Region where Identity Center was enabled |
| Accounts do not appear as assignment targets | Trusted access for `sso.amazonaws.com` is off, or the account is not active | Run `list-aws-service-access-for-organization` and check the account status |
| A new account has no roles | No assignment exists for it yet | Create an assignment, then list the reserved roles in that account |
The Region problem catches many people. Identity Center commands such as aws sso-admin and aws identitystore work only in the Region that hosts the instance. A command run in another Region fails or shows nothing, even though the instance exists. Set the Region on the command with --region, or in your profile.
What to remember
- Use an organization instance for multi-account access. It is created from the management account, in one Region, and requires all features in Organizations.
- Enabling Identity Center turns on trusted access for
sso.amazonaws.com, which is how it reaches your accounts. - Account lists come from Organizations. Assignments are per account, never per OU.
- Roles that Identity Center creates in member accounts use the
AWSReservedSSO_prefix and the/aws-reserved/sso.amazonaws.com/path.
Exercise
You run aws sso-admin list-instances and get an empty list, but a colleague says Identity Center is enabled for your organization. Name two things you would check, and the command that checks the second one.
Show answer
First, check that you are using the Region where Identity Center was enabled, because sso-admin returns instances only for the current Region. Second, check that you are in the management account or a delegated administrator account. Confirm the account and organization setup with aws organizations describe-organization, which shows the management account ID and that the feature set is ALL.
Exercise
An administrator wants every account under one OU to get a permission set. Why can't they assign the permission set to the OU directly, and what does the account list come from?
Show answer
Identity Center assignments always target a single AWS account, so there is no OU-level assignment. The administrator must list the active accounts in the OU with Organizations (for example aws organizations list-accounts-for-parent) and create one assignment per account. Identity Center gets its account list from Organizations, not from its own registry.