CREATE IDENTITY PROVIDER - 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.

CREATE IDENTITY PROVIDER

Defines a new identity provider. Only a superuser can create an identity provider.

Syntax

CREATE IDENTITY PROVIDER identity_provider_name TYPE type_name NAMESPACE namespace_name [PARAMETERS parameter_string] [APPLICATION_ARN arn] [IAM_ROLE iam_role] [AUTO_CREATE_ROLES [ TRUE [ { INCLUDE | EXCLUDE } GROUPS LIKE filter_pattern] | FALSE ] ];

Parameters

identity_provider_name

Name of the new identity provider. For more information about valid names, see Names and identifiers.

type_name

The identity provider to interface with. Azure and AWSIDC are currently the only supported identity providers.

namespace_name

The namespace. This is a unique, shorthand identifier for the identity provider directory.

parameter_string

A string containing a properly formatted JSON object that contains parameters and values required for the identity provider.

arn

The Amazon resource name (ARN) for an IAM Identity Center managed application. This parameter is applicable only when the identity-provider type is AWSIDC.

iam_role

The IAM role that provides permissions to make the connection to IAM Identity Center. This parameter is applicable only when the identity-provider type is AWSIDC.

auto_create_roles

Enables or disables the auto-create role feature. If the value is TRUE, Amazon Redshift enables the auto-create role feature. If the value is FALSE, Amazon Redshift disables the auto-create role feature. If the value for this parameter isn't specified, Amazon Redshift determines the value using the following logic:

  • If AUTO_CREATE_ROLES is provided but the value isn't specified, the value is set to TRUE.

  • If AUTO_CREATE_ROLES isn't provided and the identity provider is AWSIDC, the value is set to FALSE.

  • If AUTO_CREATE_ROLES isn't provided and the identity provider is Azure, the value is set to TRUE.

To include groups, specify INCLUDE. The default is empty, which means include all groups if AUTO_CREATE_ROLES is on.

To exclude groups, specify EXCLUDE. The default is empty, which means do not exclude any groups if AUTO_CREATE_ROLES is on.

AUTO_CREATE_ROLES applies only to sign-ins through the identity provider. It doesn't create roles for sign-ins with trusted identity propagation for IAM, even when an AWSIDC provider uses AUTO_CREATE_ROLES TRUE. These sign-ins use existing roles associated with the person's IAM Identity Center groups.

filter_pattern

A valid UTF-8 character expression with a pattern to match group names. The LIKE option performs a case-sensitive match that supports the following pattern-matching metacharacters:

Metacharacter Description
% Matches any sequence of zero or more characters.
_ Matches any single character.

If filter_pattern does not contain metacharacters, then the pattern only represents the string itself; in that case LIKE acts the same as the equals operator.

filter_pattern supports the following characters:

  • Uppercase and lowercase alphabetic characters (A-Z and a-z)

  • Numerals (0-9)

  • The following special characters:

    _ % ^ * + ? { } , $

AWSIDC identity providers and trusted identity propagation for IAM

When an AWSIDC identity provider is registered

When a cluster or workgroup has an Amazon Redshift IAM Identity Center application registered as an identity provider with TYPE AWSIDC, that identity provider controls every sign-in with trusted identity propagation for IAM credentials. This applies whether or not the credential names an IAM Identity Center identity store. The sign-in follows the same user and group behavior as a sign-in through the registered Amazon Redshift IAM Identity Center application.

  • Amazon Redshift maps the person to the user in the identity provider namespace, such as awsidc:alice@example.com. If the namespaced user doesn't exist, Amazon Redshift creates it according to the application's user-creation behavior.

  • A non-prefixed user with the same name isn't used. Account, cluster, namespace, and user-level identity federation settings don't apply while the AWSIDC provider is registered. A FEDERATION setting on a non-prefixed user is ignored for these sign-ins.

  • The provider configuration selects the IAM Identity Center identity store used to resolve the person and group membership. The session uses the same namespace-prefixed roles and group associations as a sign-in through the provider. Trusted identity propagation for IAM doesn't create roles.

  • Password sign-ins don't receive IAM Identity Center group roles from the registered application.

  • The sign-in is rejected if the provider is disabled or unreadable, the identity store is invalid, or Amazon Redshift can't resolve the person or complete group membership.

When you drop the AWSIDC identity provider

Dropping the AWSIDC identity provider removes the registered Amazon Redshift IAM Identity Center integration. If users or roles belong to the identity provider, the command fails unless you specify CASCADE. With CASCADE, the command also drops the users and roles in the provider namespace. Before dropping the provider, review dependencies, object ownership, grants, and workloads that use those namespace-prefixed users and roles.

  • Existing non-prefixed users aren't used as substitutes while the provider is registered.

  • After the provider is removed, future trusted identity propagation for IAM sign-ins no longer use the namespace-prefixed AWSIDC mapping. They follow the configured account, cluster, or namespace identity federation mode.

  • Dropping the provider doesn't migrate grants or ownership from a namespace-prefixed user or role to a non-prefixed identity.

For command syntax and dependency handling, see DROP IDENTITY PROVIDER.

Examples

The following example creates an identity provider named oauth_standard, with a TYPE azure, to establish communication with Microsoft Azure Active Directory (AD).

CREATE IDENTITY PROVIDER oauth_standard TYPE azure NAMESPACE 'aad' PARAMETERS '{"issuer":"https://sts.windows.net/2sdfdsf-d475-420d-b5ac-667adad7c702/", "client_id":"87f4aa26-78b7-410e-bf29-57b39929ef9a", "client_secret":"BUAH~ewrqewrqwerUUY^%tHe1oNZShoiU7", "audience":["https://analysis.windows.net/powerbi/connector/AmazonRedshift"] }'

You can connect an IAM Identity Center managed application with an existing provisioned cluster or Amazon Redshift Serverless workgroup. This gives you the ability to manage access to a Redshift database through IAM Identity Center. To do so, run a SQL command like the following sample. You have to be a database administrator.

CREATE IDENTITY PROVIDER "redshift-idc-app" TYPE AWSIDC NAMESPACE 'awsidc' APPLICATION_ARN 'arn:aws:sso::123456789012:application/ssoins-12345f67fe123d4/apl-a0b0a12dc123b1a4' IAM_ROLE 'arn:aws:iam::123456789012:role/MyRedshiftRole';

The application ARN in this case identifies the managed application to connect to. You can find it by running SELECT * FROM SVV_IDENTITY_PROVIDERS;.

For more information about using CREATE IDENTITY PROVIDER, including additional examples, see Native identity provider (IdP) federation for Amazon Redshift. For more information about setting up a connection to IAM Identity Center from Redshift, see Connect Redshift with IAM Identity Center to give users a single sign-on experience.