Workforce identity with Trusted Identity Propagation for IAM - Amazon Redshift
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

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

Identity federation modes

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.

Getting started

  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 and Configure trusted identity propagation for an IAM identity provider in the IAM User Guide.

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

  3. 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";.

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