

# IdentityFederationSetting

The identity federation setting for a namespace, which controls how a TIP for IAM federated user's login is handled, and whether it is inherited from the account.

## Contents
<a name="API_IdentityFederationSetting_Contents"></a>

 ** inherited **   <a name="redshiftserverless-Type-IdentityFederationSetting-inherited"></a>
Whether the identity federation mode is inherited from the account. If `false`, the account-level mode is overridden for this namespace.  
Type: Boolean  
Required: No

 ** mode **   <a name="redshiftserverless-Type-IdentityFederationSetting-mode"></a>
The identity federation mode for the namespace, which determines how a TIP for IAM federated user's login is handled.  
Valid values are:  
+  `DEFAULT` – Preserves existing IAM role-based access and records the IAM federated user's subject in [STL\_CONNECTION\_LOG](https://docs.aws.amazon.com/redshift/latest/dg/r_STL_CONNECTION_LOG.html). If the IAM role has no database user, the federated user logs in as the database user with the same name, which is created if it doesn't exist. The login fails if that database user exists but is not enabled for federation. Does not associate IdP groups with database roles.
+  `FEDERATED` – Logs the IAM federated user in as the database user with the same name, or creates that user if none exists. Does not associate IdP groups with database roles.
+  `FEDERATED_WITH_GROUPS` – Everything in `FEDERATED`. In addition, associates each IdP group with the existing database role with the same name. Associates a group with a system-defined role only if the system roles federation setting allows it.
Type: String  
Valid Values: `DEFAULT | FEDERATED | FEDERATED_WITH_GROUPS`   
Required: No

## See Also
<a name="API_IdentityFederationSetting_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/redshift-serverless-2021-04-21/IdentityFederationSetting) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/redshift-serverless-2021-04-21/IdentityFederationSetting) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/redshift-serverless-2021-04-21/IdentityFederationSetting) 