Sub topic 3
Choosing an identity source
This chapter assumes you know what an Identity Center instance is, as covered in the first chapter of this tutorial. It also assumes you are comfortable with SAML-based single sign-on. The identity source is the system that holds your users and groups. Every account assignment you create later points at a user or group from this source, so the choice affects the rest of your design.
What an identity source does
An identity source answers three questions for Identity Center:
- Where do user and group records come from?
- Who checks the password and the multi-factor authentication (MFA) challenge at sign-in?
- How do users and groups get into the Identity Center identity store?
An instance has exactly one identity source at a time. The identity store is the directory inside Identity Center. Whatever the source, assignments and permission sets refer to users and groups in that store by their internal IDs, not by name.
The three options
| Option | Where users and groups live | Who authenticates | How records reach Identity Center |
|---|---|---|---|
| Identity Center directory | In Identity Center itself | Identity Center | You create them in the console, CLI, or API |
| Active Directory | AWS Managed Microsoft AD, or a self-managed AD reached through AD Connector or a trust | Active Directory | Identity Center syncs the users and groups you select |
| External identity provider (IdP) | In the IdP, for example Okta or Microsoft Entra ID | The IdP, over SAML 2.0 | SCIM provisioning, or manual creation |
Identity Center directory
This is the default. It needs no external system, so it suits small organizations, proofs of concept, and break-glass setups. You manage users and groups with the console or the identitystore API. Identity Center handles passwords and MFA.
The drawback is that you now keep a separate user list. When someone leaves the company, someone must remember to delete them here too.
Active Directory
Use this when you already run Active Directory and want sign-in to follow it. Identity Center connects to an AWS Managed Microsoft AD directory. A self-managed domain is reached through an AD Connector or a trust relationship. You choose which users and groups to sync, and you should keep the synced set small and deliberate.
Two points affect planning:
- The directory must be in the same Region as your Identity Center instance. Decide the Region before you build the directory.
- Sync runs on a schedule. A group membership change in AD is not instant in Identity Center, so allow for delay when you test.
External identity provider
Use this when a SAML 2.0 IdP is already the company's source of truth. Identity Center acts as a service provider and trusts the IdP's assertions. Passwords and MFA policy stay with the IdP.
An external IdP does not copy users into Identity Center by itself. You have two ways to fill the store:
- SCIM (System for Cross-domain Identity Management) automatic provisioning. The IdP pushes users and groups to a SCIM endpoint that Identity Center exposes.
- Manual creation. You create each user and group in Identity Center to match the IdP. This does not scale and drifts easily.
Choose SCIM unless you have a strong reason not to. Without it, a user can authenticate at the IdP but have no matching record to assign permission sets to, so sign-in fails.
Identity Center issues the SCIM access token, and the token expires. Put its renewal on a calendar. When the token lapses, provisioning stops without any visible sign-in failure for existing users. New hires and group changes simply stop arriving.
How the choice affects permission sets
The identity source does not change how permission sets or assignments work. Both operate on principals in the identity store. It does change four practical things.
Group management. Your group-based design (covered in a later chapter) needs groups that mirror job functions. With SCIM or AD, the IdP or directory owns membership. Treat the identity store copy as read-only and change membership at the source. Edits made in Identity Center to synced groups are overwritten or rejected.
Attributes for ABAC. Attribute-based access control uses user attributes, such as Department, as session tags. Those attributes come from the identity source. An IdP must send them, either through SAML assertions or SCIM. If the attribute is missing at the source, the policy condition never matches.
Lookup by name. The earlier CLI example found a group by DisplayName. That works because display names are unique within an identity store. Names also change in an IdP, so scripts that hard-code an ID are safer once you have resolved it.
Offboarding. With an external IdP or AD, disabling a user at the source stops new sign-ins. Existing sessions keep working until their session duration ends, so a long session duration (see the session settings chapter) extends the window.
Inspecting what you have
This script lists the groups in your identity store. For each group, it shows whether an external ID is present, which tells you whether the group came from a synced source.
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[].{Name:DisplayName,GroupId:GroupId,ExternalIds:ExternalIds}' \
--output tableYou can create a group directly in the Identity Center directory like this:
aws identitystore create-group \
--identity-store-id "$IDENTITY_STORE_ID" \
--display-name Auditors \
--description "Read-only auditors"Do not run create-group for a group that your IdP will also push by SCIM. You would end up with a conflicting duplicate name.
Decision guide
Apply these criteria in order:
- Use the system that already owns joiner, mover, and leaver processes. A second user list adds manual work and risk.
- Prefer SCIM with an external IdP over manual user creation.
- Use the Identity Center directory when you have no existing system, or for a small, isolated environment.
Changing the source later
You can change the identity source, but treat it as a migration, not a setting.
Before you switch, take these steps:
- Record every assignment with
aws sso-admin list-account-assignmentsfor each account and permission set. - Make sure the new source has groups with the names and membership you need.
- Schedule the change outside working hours, and keep a way into the accounts that does not depend on Identity Center. IAM roles for emergency access serve this purpose.
This cost is why the choice deserves attention before you create assignments at scale.
Common errors
- A user signs in at the IdP but gets "user not found" in Identity Center. SCIM is not provisioning that user. Check the SCIM token expiry and whether the IdP app assigns the user.
- An AD group does not appear. It is not in the sync scope. Add it to the selected users and groups.
- A policy using
${aws:PrincipalTag/Department}denies everything. The attribute is not being sent. Check the IdP's attribute mapping or the ABAC configuration in Identity Center. - A group edit in Identity Center disappears. The source owns synced groups. Make the change there.
Exercise
Your company uses an external SAML IdP, and new hires can sign in to the IdP but cannot see any AWS accounts. Existing employees are fine. Name the most likely cause and where you would look first.
Show answer
Automatic provisioning has probably stopped, most likely because the SCIM access token expired. New users are never created in the Identity Center identity store, so no group membership or assignment can apply to them. Check the SCIM token expiry in Identity Center and the provisioning logs in the IdP, then generate a new token and update the IdP.
Exercise
You plan to use ABAC with a Department attribute. Which choice of identity source makes that attribute available, and what must you configure?
Show answer
Any of the three can work, but the attribute must exist at the source and reach Identity Center. With an external IdP, map Department in the SAML assertion or SCIM attributes. With Active Directory, make sure the attribute is synced. With the Identity Center directory, set the attribute on each user.