View a markdown version of this page

Simplified experience for trusted identity propagation - AWS IAM Identity Center

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. The identity context includes context keys, such as aws:OriginIdentity/Subject for the username and aws:OriginIdentity/Issuer for your IAM Identity Center instance. You can view the username in AWS CloudTrail events, and use the context keys in IAM policy conditions. For all the context keys, see Available context keys. For the AWS services that can use the identity context in IAM policies or record it in AWS CloudTrail, see AWS 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.

For analytics and storage services that support the simplified experience, see Analytics and storage services that support the simplified experience.

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 AWS 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 AWS CloudTrail (simplified experience).

Group-based access control

Because the user's identity propagates with each request, services that have their own grant engines, such as AWS Lake Formation and Amazon S3 Access Grants, can grant access to IAM Identity Center groups. The identity context doesn't carry the user's group membership. Instead, these services look up the user's groups in your IAM Identity Center directory. When a user's group membership changes in your identity source, their access changes with it, and you don't need to update policies when someone joins or leaves. For more information, see Group-based access control (recommended).

The same identity on every access path

Workforce users who federate through IAM Identity Center reach AWS through several paths. These include web applications, and AWS accounts in the AWS access portal, where users assume IAM roles that are created from permission sets or assigned with IAM account access manager. Example web applications include Amazon SageMaker Unified Studio and Amazon EMR Studio. In the simplified experience, all of these paths carry the same identity context, including the username, so auditing of that user's actions in AWS 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.

In the simplified experience, downstream AWS services that support the simplified experience no longer need an IAM Identity Center application registration, and you don't need to add user and group assignments for them beyond the entry point applications that users sign in to. For these services, see Analytics and storage services that support the simplified experience. A downstream AWS service is a service that receives a user's identity from a web application or from an upstream service, and can use that identity to authorize access to data. For example, when a user queries data in Amazon SageMaker Unified Studio, Amazon Athena and AWS Lake Formation are downstream AWS services. Setup is only required for the entry point applications that users sign in from: web applications that let users sign in with IAM Identity Center, such as Amazon SageMaker Unified Studio. These applications need an IAM Identity Center integration.

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 AWS 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 AWS 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.

AWS Security Token Service (AWS 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 AWS organization That account, or another account in the same organization AWS STS carries the identity context into the new role session.
Belongs to an AWS organization A standalone account, or an account in a different organization AWS 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 AWS STS carries the identity context into the new role session.
Does not belong to an organization Belongs to any other account AWS 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 AWS service uses its own credentials to assume an IAM service role in your account, AWS STS applies the same boundary. AWS STS uses the account that owns your instance and, when present, its organization in the identity context, not the account of the AWS service. If the service role is within the boundary, AWS 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 the services that support user background sessions, and 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
Application registration for downstream AWS services Required Not needed for downstream AWS services that support the simplified experience. Only the entry point applications that users sign in to need an IAM Identity Center integration. See Analytics and storage services that support the simplified experience.
User and group assignments on downstream AWS services Enforced Enforced only when you optionally set them up for the entry point applications that users sign in to. You can't add user and group assignments for downstream AWS services in a trusted identity propagation call chain. Existing assignments on downstream AWS services continue to be honored only in the cases listed in Where user and group assignments still apply.
OAuth scopes for SigV4 requests that carry the user's identity context Enforced Not enforced, for both AWS managed and customer-configured scopes. Access is governed by IAM policies and service native access controls, such as AWS 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, requests that AWS services make on the user's behalf with forward access sessions (FAS), and roles assumed by services that support the simplified experience
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.

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)
User background sessions Turned on by default for new instances, with a 7-day default duration Turned on by default for new instances, with a 7-day default duration

Analytics and storage services that support the simplified experience

The following table lists the analytics and storage services that support the simplified experience. Each service links to its own documentation for setup steps, supported releases, and Regions. Additional services will be added to the table as they adopt the simplified experience.

Service Documentation
Amazon SageMaker Unified Studio Trusted identity propagation in the Amazon SageMaker Unified Studio Administrator Guide
AWS Lake Formation Granting permissions to users and groups in the AWS Lake Formation Developer Guide
AWS Glue Trusted identity propagation with AWS Glue ETL in the AWS Glue Developer Guide
Amazon EMR on Amazon EC2 Simplified trusted identity propagation in the Amazon EMR Management Guide
Amazon EMR on Amazon EKS Simplified trusted identity propagation in the Amazon EMR on Amazon EKS Development Guide
Amazon EMR Serverless Simplified trusted identity propagation in the Amazon EMR Serverless User Guide
Amazon Athena Amazon Athena receives the user's identity through forward access sessions. For more information, see Use trusted identity propagation with Amazon Athena drivers and Use IAM Identity Center enabled Athena workgroups in the Amazon Athena User Guide.
Amazon Redshift Identity management in the Amazon Redshift Management Guide
Amazon Managed Workflows for Apache Airflow Serverless (Amazon MWAA Serverless) Trusted identity propagation with Amazon MWAA Serverless in the Amazon MWAA Serverless User Guide
Amazon S3 Access Grants S3 Access Grants and corporate directory identities in the Amazon S3 User Guide
Note

For instances that have opted in to the simplified experience, but where an AWS service still supports only the legacy experience, the service also stops validating OAuth scopes. Its other existing requirements, such as application registrations and user and group assignments, remain until the service adopts the simplified experience. For more information about AWS services that support the legacy experience of trusted identity propagation, see AWS managed applications that you can use with IAM Identity Center.

Other AWS services that receive the identity context

Other AWS services also receive the user's identity in SigV4 credentials. You don't need to set up anything in those services for the simplified experience. They can use the identity context in IAM policy evaluation, record it in AWS CloudTrail, or both.

For the AWS services that can use the identity context in IAM policies or record it in AWS CloudTrail, see AWS services that support TIP in the IAM User Guide. To write policies that use the identity context, see Use the identity context for IAM policies.