

# Simplified trusted identity propagation

Simplified trusted identity propagation is the recommended way to propagate a workforce user's identity through Amazon EMR to downstream AWS services. When a user runs a Spark workload, Amazon EMR carries that user's identity to AWS Lake Formation, Amazon S3 Access Grants, and S3 table grants. Those services then authorize and audit access as the individual user rather than as a shared role.

Simplified trusted identity propagation is available with Amazon EMR on EC2 release 8.2 and higher. Workloads on earlier releases continue to use the earlier version of trusted identity propagation. For the earlier version, see [Integrate Amazon EMR with AWS IAM Identity Center](emr-idc.md).

**Topics**
+ [What changed from the earlier version](#emr-tip-simplified-whatchanged)
+ [The two paths](#emr-tip-simplified-paths)
+ [What is in the propagated identity context](#emr-tip-simplified-context)
+ [How it works](#emr-tip-simplified-howitworks)
+ [Supported workloads, releases, and entry points](#emr-tip-simplified-supported)
+ [Get started with simplified trusted identity propagation](emr-tip-simplified-get-started.md)
+ [Audit access with simplified trusted identity propagation](emr-tip-simplified-auditing.md)
+ [Migrate from the earlier version of trusted identity propagation](emr-tip-simplified-migrate.md)
+ [Considerations and limitations for simplified trusted identity propagation](emr-tip-simplified-considerations.md)

## What changed from the earlier version
<a name="emr-tip-simplified-whatchanged"></a>

Simplified trusted identity propagation changes the following from the earlier version of trusted identity propagation:
+ With the earlier version, Amazon EMR created the Identity Center application for you. The simplified version doesn't use one.
+ There are no OAuth scopes to manage.
+ There is no identity-propagation configuration to add to Amazon EMR. On supported releases, identity propagation applies automatically after you complete the one-time setup for your chosen path.
+ There is no `sts:SetContext` permission to add to execution roles.
+ Workforce users who reach AWS through IAM federation, and not only through IAM Identity Center, can propagate their identity.

## The two paths
<a name="emr-tip-simplified-paths"></a>

You can propagate identity through either of two paths. You can use both paths in the same account during a transition.
+ **IAM Identity Center path** – an administrator opts in once in the IAM Identity Center console, at the account or organization level. For more information, see [Enable the simplified experience](https://docs.aws.amazon.com/singlesignon/latest/userguide/simplified-tip-enabling.html) in the *IAM Identity Center User Guide*.
+ **IAM federation path** – an administrator configures a context provider once in IAM, for users who reach AWS through SAML or OIDC federation. For more information, see [Configure a context provider for trusted identity propagation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip.html) in the *IAM User Guide*.

## What is in the propagated identity context
<a name="emr-tip-simplified-context"></a>

The identity context is the identity information about the workforce user that travels with the credentials. The identity context that Amazon EMR propagates depends on the path.
+ On the IAM Identity Center path, the context carries the user's subject (for example, the corporate email), the Identity Center user ID, the identity store ARN, and the Identity Center session ID.
+ On the IAM federation path, the context carries the subject, the subject type, the issuer, and, if you attached an IAM Identity Center instance, the Identity Center instance ARN.

## How it works
<a name="emr-tip-simplified-howitworks"></a>

A user authenticates through IAM Identity Center or through the corporate identity provider using IAM federation, and works with Amazon EMR. When a session or job runs on a supported release, Amazon EMR reads the identity context on the incoming credentials and propagates it to downstream services for authorization and auditing.

If the incoming credentials carry no identity context, or the cluster has no role configured to carry the identity, Amazon EMR runs a step or session without propagating a user identity, and drops the identity rather than failing the step or session. The default role is the role that Amazon EMR uses when a request doesn't specify an execution role, on a cluster where `EnableApplicationScopedIAMRole` is `false`; on Amazon EMR on EC2, it's the `DefaultApplicationScopedIAMRole` set in the security configuration.

Downstream services enforce the propagated identity as follows:
+ AWS Lake Formation enforces table, row, column, and cell-level access to AWS Glue Data Catalog tables.
+ Amazon S3 Access Grants enforces prefix-level access to Amazon S3 data.
+ S3 table grants enforces table-level access to Amazon S3 Tables.

## Supported workloads, releases, and entry points
<a name="emr-tip-simplified-supported"></a>

On Amazon EMR on EC2, simplified trusted identity propagation is available with release 8.2 and higher. It supports the following workloads:
+ Spark batch jobs that you run through the Steps API.
+ Apache Livy interactive sessions.
+ Spark Connect sessions, which are new with simplified trusted identity propagation.

You reach these workloads through the Amazon EMR API, the AWS CLI, the AWS SDKs, the console, and Amazon SageMaker Unified Studio.

Workloads on releases earlier than 8.2 continue to use the earlier version of trusted identity propagation.