View a markdown version of this page

Simplified experience for trusted identity propagation - Amazon IAM Identity Center
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Simplified experience for trusted identity propagation

With the simplified experience for trusted identity propagation, each user's username is added to the identity context that travels with their requests, on every IAM Identity Center federation access path. You can view the username in Amazon CloudTrail events, and use any of the identity context keys in IAM policy conditions. This identity context is available across more than 250 Amazon Web Services services. For more information about the Amazon Web Services services where you can use the identity context in IAM policies, see Amazon Web Services services that support TIP in the IAM User Guide.

The username is an identifier provided by your identity source, such as your external identity provider (IdP), and stored in the username attribute of your IAM Identity Center Identity Store (for example, example-user-1). For guidance on what to include in usernames, see How the simplified experience uses the username. For an introduction to trusted identity propagation, see Trusted identity propagation overview.

Key benefits

The simplified experience provides the following key benefits:

Username-based audit and access control

You can use the username in IAM policy conditions to allow or deny access for specific users in your organization. For how to write policies on the username and the other propagated identity fields, see Use the identity context for IAM policies.

These identity context fields, including the username, are also recorded in Amazon CloudTrail. With CloudTrail, you can identify the user behind an action without first looking up the user's IAM Identity Center user ID, because the username, the identifier from your identity source, is recorded consistently on every access path. For the full list of identity context fields that CloudTrail records, see Identity context fields in Amazon CloudTrail (simplified experience).

The same identity on every access path

Workforce users who federate through IAM Identity Center reach Amazon through several paths. These include web applications such as Amazon SageMaker Unified Studio or Amazon EMR Studio, and Amazon Web Services accounts in the Amazon access portal, where users assume IAM roles that are created from permission sets or assigned with IAM account access manager. In the simplified experience, all of these paths carry the same identity context, including the username, so auditing of that user's actions in Amazon is consistent regardless of path. As an outcome, a single IAM policy condition on a username applies across every path.

Simpler setup

When you create or update IAM roles used for trusted identity propagation, you no longer need to add the sts:SetContext permission to the role trust policy. For requests signed with Signature Version 4 (SigV4), the user's identity context propagates through these roles automatically.

You also don't have to configure OAuth scopes for any application. With the simplified experience for trusted identity propagation, OAuth scope validation is now turned off for Signature Version 4 (SigV4) requests that carry the user's identity context. Scopes are only enforced for OAuth bearer token flows. In an OAuth bearer token flow, an application presents an OAuth access token directly to a service instead of signing the request with SigV4 credentials, for example Amazon Redshift JDBC or ODBC connections that use ACCESS_TOKEN, or Amazon OpenSearch Service with a JWT.

Where the identity context propagates

The identity context carries context keys that you can use in IAM policy conditions. Some of these keys include:

  • aws:OriginIdentity/Subject: the user's username.

  • aws:OriginIdentity/Issuer: the ARN of your IAM Identity Center instance.

  • aws:OriginIdentity/IdentityProviderOrgID: the Amazon Organization ID for your IAM Identity Center instance. This key is present only if the account that owns your IAM Identity Center instance is in an organization.

  • aws:OriginIdentity/IdentityProviderAccount: the Amazon Web Services account ID where you created your IAM Identity Center instance. This key is present only for IAM Identity Center account instances.

For the full list of context keys, see Available context keys.

Amazon Security Token Service (Amazon STS) uses the account and organization keys to decide where the identity context carries when a user in a session assumes another role.

Account that owns your instance Account that owns the target role Result
Belongs to an Amazon organization That account, or another account in the same organization Amazon STS carries the identity context into the new role session.
Belongs to an Amazon organization A standalone account, or an account in a different organization Amazon STS doesn't propagate the identity context when the role is assumed. The role assumption will still succeed if the permissions and the trust policy of the target role allow it.
Does not belong to an organization Same as the account that owns your instance Amazon STS carries the identity context into the new role session.
Does not belong to an organization Belongs to any other account Amazon STS doesn't propagate the identity context when the role is assumed. The role assumption will still succeed if the permissions and the trust policy of the target role allow it.

When a supported Amazon Web Services service uses its own credentials to assume an IAM service role in your account, Amazon STS applies the same boundary. Amazon STS uses the account that owns your instance and, when present, its organization in the identity context, not the account of the Amazon Web Services service. If the service role is within the boundary, Amazon STS adds the identity context to the service role session.

A direct request to a resource in another organization uses the original credentials, and IAM can evaluate the context keys if a resource policy references them.

Background sessions

Services that support the simplified experience can use user background sessions to keep long-running jobs and sessions running after a user signs out. User background sessions are turned on by default for new IAM Identity Center instances, with a default duration of 7 days. For existing IAM Identity Center instances, when you turn on the simplified experience, the instance keeps its current user background sessions setting. For more information about the capability, see User background sessions.

How the simplified experience differs from the legacy experience

Your IAM Identity Center instance uses the legacy experience until you turn on the simplified experience. The simplified experience removes most of the setup that the legacy experience requires. The following table lists the differences.

Before you turn on the simplified experience, review Prerequisites and considerations for the simplified experience.

To move to the simplified experience, see Moving from the legacy experience to the simplified experience.

Key differences

Configuration Legacy experience Simplified experience
OAuth scopes for SigV4 requests that carry the user's identity context Enforced Not enforced, for both Amazon managed and customer-configured scopes. Access is governed by IAM policies and service native access controls, such as Amazon Lake Formation grants, Amazon S3 Access Grants, and Amazon Redshift role-based access control.
sts:SetContext on role trust policies Required Not needed (ignored; safe to leave)
Identity propagation across role chains Trust policy update on every role; did not carry when a service assumed a role on the user's behalf Automatic through the full chain, including IAM roles that users assume, and requests that Amazon Web Services services make on the user's behalf with forward access sessions (FAS)
CloudTrail user identity fields
  • userId (Identity Store user ID)

  • identityStoreArn

  • identityCenterInstanceArn

  • subject (the username) (new)

  • subjectType (new)

  • issuer (new)

  • userId (Identity Store user ID)

  • identityStoreArn

  • identityCenterInstanceArn

IAM policy context keys for the user
  • aws:IdentityStoreArn

  • aws:IdentityCenterInstanceArn

  • identitystore:UserId

  • identitystore:IdentityStoreArn

  • aws:OriginIdentity/IdentityProviderAccount

  • aws:OriginIdentity/IdentityProviderOrgID

The same keys, plus these new keys:

  • aws:OriginIdentity/Subject

  • aws:OriginIdentity/SubjectType

  • aws:OriginIdentity/Issuer

See Available context keys.

User background sessions Not turned on by default. You turn on user background sessions and set the duration in the IAM Identity Center console. Turned on by default for new IAM Identity Center instances, with a default duration of 7 days. Existing instances keep their current setting when you turn on the simplified experience.

Key similarities

The following table lists what stays the same in the legacy experience and the simplified experience.

Configuration Legacy experience Simplified experience
IAM Identity Center application registration for web applications that users sign in to Required Required
User and group assignments on front-end web applications Optional (still controls sign-in) Optional (still controls sign-in)
OAuth bearer token flows (Redshift ACCESS_TOKEN, OpenSearch JWT) Scopes enforced Scopes still enforced (unchanged)