Sub topic 3
Choosing an identity source
This chapter assumes you know basic IAM, AWS Organizations, and the AWS CLI, and that you have seen single sign-on before. It covers the three identity sources IAM Identity Center supports and how to pick one.
What an identity source does
An identity source is where Identity Center gets its users and groups. Account assignments point at those users and groups, so the source decides who can be assigned a permission set. An instance has one active identity source at a time.
The three choices are:
- Identity Center directory: users and groups live in Identity Center itself. You create them in the console or with the
identitystoreAPI. - Active Directory: Identity Center connects to AWS Managed Microsoft AD, or to a self-managed directory through an AD Connector or a trust.
- External identity provider (IdP): Okta, Microsoft Entra ID, and similar products authenticate users through SAML 2.0. They usually sync users and groups into Identity Center through SCIM.
Comparing the options
| Source | Where users are managed | Group sync | Typical fit |
|---|---|---|---|
| Identity Center directory | Identity Center | Not needed | New or small setups, no existing directory |
| Active Directory | Your AD | Automatic from the connected directory | Organizations already built on AD |
| External IdP | The IdP | SCIM, or manual creation | Organizations with a company-wide IdP |
Gotchas that affect your assignments
- Groups drive assignments. With an external IdP, SCIM must be working before you can assign a group. If a group has not synced, it does not exist in Identity Center. Check
aws identitystore list-groupsto confirm. - Without SCIM, you maintain users twice. SAML alone signs people in, but Identity Center has no record of the users until you create them by hand.
- Changing the source is disruptive. When you switch sources, Identity Center removes the existing users, groups, and their assignments. Pick the source before you build assignments at scale.
- SCIM tokens expire. The access token that your IdP uses to call Identity Center expires after a period (check the current limit in the documentation). An expired token silently stops provisioning, so track its renewal.
Looking up the source from the CLI
You can read the identity store ID and list groups to confirm what has synced.
IDENTITY_STORE_ID=$(aws sso-admin list-instances \
--query 'Instances[0].IdentityStoreId' --output text)
aws identitystore list-groups \
--identity-store-id "$IDENTITY_STORE_ID" \
--query 'Groups[].DisplayName'If the group you expect is missing, fix the sync before you create any assignments.
Exercise
Your company uses Okta. You assign the Auditors permission set to the group "Auditors" but the group does not appear in Identity Center. What is the most likely cause, and how do you check it?
Show answer
SCIM provisioning from Okta is probably not syncing, or the group is not pushed to the Identity Center application, or the SCIM token has expired. Run aws identitystore list-groups to see whether the group exists. If it does not, check the provisioning status and the token in Okta, then push the group again.