

 Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026. We will start enforcing it in phases. For more information on the details of Python end of life and migration options, see the [ blog post ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/) that was published on June 30, 2025. 

# Workforce identity with Trusted Identity Propagation for IAM

After an identity administrator turns on trusted identity propagation (TIP) for IAM on the SAML 2.0 or OpenID Connect (OIDC) identity provider (IdP) that your organization uses, AWS STS adds identity context to the role sessions that your IdP users create. Amazon Redshift uses the IdP user's identity to choose their database user, apply their permissions, and record them in audit logs.

As soon as trusted identity propagation is enabled in IAM, Amazon Redshift does the following for each trusted identity propagation sign-in:
+ Records the IdP user behind every federated connection in the connection log, alongside the IAM role that they used.
+ Creates a federated Amazon Redshift user automatically the first time a new IdP user signs in, when no existing Amazon Redshift user can be used for the connection.
+ Keeps existing workloads, IAM role users, and local users working as before.

When you're ready to have IdP users sign in as themselves, you choose an identity federation mode for your account, and optionally override it for a cluster or Amazon Redshift Serverless namespace, or for an individual user.

For details about how Amazon Redshift chooses database identities, applies permissions, and records IdP users in audit logs, see [How trusted identity propagation for IAM works](redshift-iam-access-control-tip-how-it-works.md).

## Identity federation modes
<a name="redshift-iam-access-control-tip-modes-summary"></a>

The identity federation mode controls whether IdP users sign in as themselves. You set the mode for your account in each AWS Region. You can override it for a cluster, a namespace, or an individual user.


| Mode | What happens | Use it when | 
| --- | --- | --- | 
| Default | Connections keep their existing Amazon Redshift user, such as the IAM role user. Amazon Redshift creates an Amazon Redshift user only when no existing Amazon Redshift user applies. | You want auditing and automatic user creation without changing existing workloads. Every account starts in this mode. | 
| Federate users | IdP users sign in as the Amazon Redshift user whose name matches their Subject, and they receive that user's permissions and owned objects. If no matching Amazon Redshift user exists, Amazon Redshift creates one. | You're ready to move users from shared IAM roles to their own identities. | 
| Federate users and groups | Behaves like Federate users. In addition, each IdP group that the IdP user belongs to adds the Amazon Redshift role with the same name to the session. | You manage access through directory groups. This mode requires IAM Identity Center with users and groups provisioned, and Amazon Redshift must be able to reach IAM Identity Center. For network requirements, see [Using trusted identity propagation for IAM with enhanced VPC routing](redshift-iam-access-control-tip-evr.md). | 

## Getting started
<a name="redshift-iam-access-control-tip-getting-started"></a>

1. **In IAM:** Configure trusted identity propagation on the IAM SAML or OIDC identity provider that your workforce uses. Choose the Subject, which Amazon Redshift uses as the IdP user's database user name. To use directory groups, select **Allow granting permissions to groups** and associate an IAM Identity Center instance. For instructions, see [Getting started with trusted identity propagation for IAM federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_getting_started.html) and [Configure trusted identity propagation for an IAM identity provider](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_configure.html) in the *IAM User Guide*.

1. **In Amazon Redshift:** Make sure that your cluster or namespace runs a supported version. Connections then carry identity in the **Default** mode. For more information, see [Setting up trusted identity propagation for IAM](redshift-iam-access-control-tip-setup.md).

1. **Grant access to IdP users:** Grant permissions directly to an IdP user's database user, for example `GRANT SELECT ON sales.orders TO "alice@example.com";`.

1. **Optionally change the sign-in behavior:** Choose **Federate users** or **Federate users and groups** for the account, a cluster, a namespace, or individual users. For more information, see [Federating individual users with SQL](redshift-iam-access-control-tip-federate-users.md).

**Topics**
+ [Identity federation modes](#redshift-iam-access-control-tip-modes-summary)
+ [Getting started](#redshift-iam-access-control-tip-getting-started)
+ [Before you start using trusted identity propagation for IAM](redshift-iam-access-control-tip-considerations.md)
+ [How trusted identity propagation for IAM works](redshift-iam-access-control-tip-how-it-works.md)
+ [Setting up trusted identity propagation for IAM](redshift-iam-access-control-tip-setup.md)
+ [Identity federation modes](redshift-iam-access-control-tip-identity-modes.md)
+ [Federating individual users with SQL](redshift-iam-access-control-tip-federate-users.md)
+ [Mapping identity provider groups to Redshift roles](redshift-iam-access-control-tip-groups.md)
+ [Using trusted identity propagation for IAM with enhanced VPC routing](redshift-iam-access-control-tip-evr.md)
+ [Auditing federated connections](redshift-iam-access-control-tip-audit.md)
+ [Troubleshooting trusted identity propagation for IAM](redshift-iam-access-control-tip-troubleshooting.md)
+ [Example scenarios for trusted identity propagation in Amazon Redshift](redshift-iam-access-control-tip-scenarios.md)
+ [Related topics](#redshift-iam-access-control-tip-related)
+ [Before you start using trusted identity propagation for IAM](redshift-iam-access-control-tip-considerations.md)
+ [How trusted identity propagation for IAM works](redshift-iam-access-control-tip-how-it-works.md)
+ [Setting up trusted identity propagation for IAM](redshift-iam-access-control-tip-setup.md)
+ [Identity federation modes](redshift-iam-access-control-tip-identity-modes.md)
+ [Federating individual users with SQL](redshift-iam-access-control-tip-federate-users.md)
+ [Mapping identity provider groups to Amazon Redshift roles](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-tip-groups.html)
+ [Using trusted identity propagation for IAM with enhanced VPC routing](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-tip-evr.html)
+ [Auditing federated connections](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-tip-audit.html)
+ [Troubleshooting trusted identity propagation for IAM](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-tip-troubleshooting.html)
+ [Example scenarios for trusted identity propagation in Amazon Redshift](https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-tip-scenarios.html)

## Related topics
<a name="redshift-iam-access-control-tip-related"></a>
+ [Trusted identity propagation with IAM](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip.html) and [Trusted identity propagation for IAM federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation.html) in the *IAM User Guide*
+ [Configure group-based access for trusted identity propagation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_configure_group_access.html) in the *IAM User Guide*
+ [Trusted identity propagation context keys and runtime claims for IAM federation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_context_keys.html) in the *IAM User Guide*
+ [Control trusted identity propagation for IAM federation with IAM policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_federation_policies.html) in the *IAM User Guide*
+ [Logging trusted identity propagation activity with AWS CloudTrail](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_cloudtrail.html) in the *IAM User Guide*
+ [AWS services that support trusted identity propagation](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_tip_services.html) in the *IAM User Guide*
+ [Simplified experience for trusted identity propagation](https://docs.aws.amazon.com/singlesignon/latest/userguide/simplified-tip-overview.html) in the *IAM Identity Center User Guide*
+ If your cluster has a registered IAM Identity Center application, see [Single sign-on with AWS IAM Identity Center](redshift-iam-access-control-idp-connect.md). Clusters with a registered application keep their IAM Identity Center behavior.
+ [Amazon Redshift federated permissions](https://docs.aws.amazon.com/redshift/latest/dg/federated-permissions.html) in the *Amazon Redshift Database Developer Guide*
+ [Using IAM authentication to generate database user credentials](generating-user-credentials.md)