Lesson 3 of 4 Amazon Cognito and IAM Identity Center

Providing Workforce Single Sign-On with IAM Identity Center

This lesson explains how IAM Identity Center gives employees single sign-on to every AWS account in an organisation and to business applications, with short-lived credentials and central management.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how Identity Center works with an identity source.
  • Explain how permission sets and ABAC define access across accounts.
  • Choose the right identity service for each kind of user.

How Identity Center works

AWS IAM Identity Center, the successor to AWS Single Sign-On, provides one sign-in portal for every account in an organisation and for SAML applications. Its identity source can be its own directory, Active Directory through AWS Managed Microsoft AD or AD Connector, or an external identity provider such as Microsoft Entra ID or Okta, connected with SAML 2.0 and SCIM, which provisions users and groups automatically.

Access is defined with permission sets, such as ReadOnly, Developer or Admin, which are created once and assigned to groups for specific accounts; Identity Center creates and maintains matching IAM roles in every assigned account. Users receive short-lived credentials for the console and for the CLI with aws sso login, so employees need no IAM users or access keys.

The following diagram shows how permission sets become roles in each assigned account.

How IAM Identity Center grants access. Users and groups come from the identity source, such as Microsoft Entra ID or Okta connected with SAML 2.0 and SCIM. Permission sets are assigned to groups for specific accounts, and Identity Center creates matching IAM roles in each account. Users sign in once and receive short-lived credentials for the console and the CLI.
The account names and assignments are illustrative. A change to a permission set is applied to the roles in every account where it is assigned.
True or false

How Identity Center works

Exam skills 1.1.6

Check how IAM Identity Center provides workforce access.

Log in to try this activity Interactive activities are free with an account.

Permission sets and ABAC

A permission set can combine AWS managed policies, customer managed policies, an inline policy and a permissions boundary, so it can express anything from broad read-only access to tightly scoped administrative rights. Because the same permission set is assigned to many accounts, access stays consistent across the organisation.

User attributes from the identity source, such as department or cost centre, can be passed into sessions as tags, which enables attribute-based access control across accounts with a single permission set. Administration of Identity Center can be delegated to a member account, so that day-to-day access management does not require using the management account.

Choosing an identity service

AWS has several identity services, and each is meant for a different kind of user or workload. Employees who need AWS accounts and business applications use IAM Identity Center, which provides single sign-on, connects to the corporate directory and manages permissions across the organisation. Customers of your own applications use Cognito, which scales to millions of users and supports social sign-in.

Workloads that need Active Directory, such as Windows servers joined to a domain or FSx for Windows File Server, use AWS Directory Service. Workloads that call AWS APIs, such as an EC2 instance or a Lambda function, use IAM roles and receive temporary credentials automatically. The following table summarises the choice.

Who or whatService
Employees accessing AWS accounts and appsIAM Identity Center
Customers of your applicationsCognito
Workloads that need Active DirectoryDirectory Service
Workloads calling AWS APIsIAM roles

Avoid IAM users for employees.

Match the pairs

Choosing an identity service

Exam skills 1.1.6 · 1.2.3

Match each user or workload with the identity service that suits it.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing an identity service

An organisation has several identity requirements, each met by a different AWS service. The following table identifies the appropriate choice for each.

RequirementChoice
Employees sign in to 20 AWS accounts with their Microsoft Entra ID accountsIAM Identity Center federated with Entra ID
Windows servers in AWS must join an Active Directory domainAWS Managed Microsoft AD
Users sign in to Amazon WorkSpaces with their on-premises AD accounts; AD stays on premisesAD Connector
Customers sign up to a public websiteAmazon Cognito user pool
A simple directory for a few Linux instances, no trusts neededSimple AD

The first question to ask is whose identities they are: workforce identities point to IAM Identity Center and Directory Service; customer identities point to Cognito.

Check yourself

What is a permission set?

Show answer

A template of IAM policies that Identity Center turns into a role in each account it is assigned to, so the same access can be granted consistently across many accounts.

Exam Tips

Remember for the exam

  • For single sign-on to many AWS accounts with corporate credentials, use IAM Identity Center.
  • When employees using Okta or Entra ID need access to many AWS accounts, use Identity Center with SAML and SCIM.
  • For CLI access with short-lived credentials for employees, use Identity Center (aws sso login).
  • To give a group the same access in many accounts, assign a permission set to the group for each account.