IAM Identity Center and federation

Intermediate · 6 min

One sign-in for people across AWS accounts: identity sources, SAML and SCIM, permission sets, CLI access, and when IAM federation is enough.

Before thisIAM users, groups, roles and policiesAssuming roles with STS

Tiny Technical Tutorials · 6 min

IAM Identity Center and federation

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by Tiny Technical TutorialsReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • Federation means AWS trusts another system to authenticate people, then gives them temporary role sessions. No IAM user per person.
  • IAM Identity Center (formerly AWS SSO) is the usual way to do it: one sign-in, a portal listing the accounts and roles you may use, and CLI support.
  • A permission set is a template. Assigning it to a group on an account creates a managed IAM role in that account.
  • SAML or OpenID Connect handles sign-in. SCIM keeps users and groups synchronized, including removing people who leave.
  • Use an organization instance for access across accounts, assign to groups, and keep a tested break-glass path.

The problem with one user per account

A team of thirty people works in ten accounts. With IAM users, that is up to three hundred identities, each with its own password and MFA, possibly access keys. When someone joins you create ten. When someone leaves you hope you find all ten.

Your company already has a system that knows who works there: Google Workspace, Microsoft Entra ID, Okta. Federation lets AWS trust it. The person proves who they are once, to that system, and AWS gives them a temporary role session. It is the difference between every shop issuing its own ID card and every shop accepting a passport.

The protocols are the same as anywhere else, explained in federated identity at scale.

IAM Identity Center

IAM Identity Center, formerly AWS Single Sign-On, is AWS’s service for workforce sign-in. It has four moving parts.

Identity source. Where users live. Either Identity Center’s own directory, Active Directory, or an external identity provider. With an external one, SAML handles the sign-in and SCIM synchronizes users and groups. SCIM matters for leavers: without it, the directory entry inside AWS lingers.

Permission sets. A named bundle of policies such as ReadOnly or DatabaseAdmin, with a session duration from 1 hour (the default) to 12.

Assignments. A triple: this group, this permission set, this account.

Access portal. A web page where the user sees exactly the accounts and roles assigned to them.

Behind an assignment, Identity Center creates an ordinary IAM role in the target account, with a name starting AWSReservedSSO_. Nothing magical happens at access time: you sign in, pick a role, and receive temporary credentials for it. Policy evaluation is the same as for any role, including organization guardrails.

Group Permission set Accounts
developers PowerUser-like dev
developers ReadOnly staging, prod
platform Administrator all
finance Billing management

Assign to groups, never to individuals. Then joining a team is one change in the directory.

On the command line

aws configure sso          # once: portal URL, Region, account, role
aws sso login --profile dev
aws s3 ls --profile dev

The CLI opens a browser, you authenticate, and it caches a token from which it fetches role credentials and refreshes them. No access key is ever created. SDKs read the same profiles.

Organization instance or account instance

An organization instance is enabled from the Organizations management account and is the one you want for access across accounts. An account instance is bound to a single account and Region, meant for narrower cases such as giving an isolated set of users access to an AWS application.

You pick a primary Region when enabling it. Organization instances can now replicate to additional Regions, if prerequisites are met, so that account access survives trouble in the primary one.

Newer options exist too: account access manager lets you assign roles you defined yourself to Identity Center users and groups, for cases where permission sets are too restrictive, such as needing a custom trust policy.

Plain IAM federation

You can also federate without Identity Center by creating a SAML or OIDC identity provider in an account’s IAM and roles that trust it. That works for a single account or an existing setup, and it is how workloads such as CI jobs federate. For people across many accounts, you would be maintaining the same wiring in each one.

For the users of your application, neither applies. That is Amazon Cognito’s job, or any other customer identity system.

Habits

  • Require MFA, at the identity provider or in Identity Center.
  • Short sessions for powerful permission sets.
  • Keep everyday sets read-only and make elevation deliberate.
  • Keep a break-glass way in for when federation fails, and alert on any use of it.
  • Manage permission sets and assignments as code.

About the video

The embed is Tiny Technical Tutorials’ “What is AWS IAM Identity Center? (the theory)”, October 2023, 6 minutes. Its chapters cover why AWS suggests it when you create an IAM user, what it is, the login experience, how it differs from IAM and a little on Organizations. It is theory only and predates multi-Region replication and account access manager. I judged it from chapters and description, since transcripts couldn’t be fetched. The demo in deeper shows the setup across accounts.

What was run: nothing. Identity Center needs a real organization and identity provider, and the commands shown were not executed. Behaviour, session limits, instance types and newer features are written from AWS documentation, checked in November 2026. The assignment table is an invented example.

Where this fits

Assignments name accounts. The last identity lesson is how those accounts are organised and fenced: Organizations, SCPs and multi-account setups.

Check yourself

  1. 01Someone leaves the company and is disabled in the corporate directory. What keeps them out of AWS, and what is the gap?

    They can no longer sign in, and SCIM provisioning deactivates their user. Role sessions they already hold can keep working until they expire, so keep durations short and revoke sessions when it matters.

  2. 02You change a permission set's policy. What happens in the twenty accounts where it is assigned?

    Identity Center manages a role in each of them and the change is provisioned to those roles. You edit one definition, not twenty.

  3. 03Why should you not edit the AWSReservedSSO roles in an account by hand?

    Identity Center owns them. Change the permission set, otherwise your edit is outside the source of truth and can be overwritten.

  4. 04Your identity provider is down during an incident. How do administrators get in?

    Through a break-glass path set up in advance, such as a small number of tightly protected IAM users or a separate federation, whose use raises an alert.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark