Using enhanced trusted identity propagation with IAM Identity Center - AWS Lake Formation
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.

Using enhanced trusted identity propagation with IAM Identity Center

With enhanced trusted identity propagation, Lake Formation identifies IAM Identity Center users by user name and groups by display name. You don't need an Lake Formation application in IAM Identity Center.

To grant permissions with enhanced trusted identity propagation
  1. Enable enhanced trusted identity propagation in IAM Identity Center. You do this once, by acknowledging the enhanced experience in IAM Identity Center. You don't need to register an application for each service, add OAuth scopes, or add sts:SetContext to role trust policies. For more information, see Trusted identity propagation overview in the AWS IAM Identity Center User Guide.

  2. Grant Lake Formation permissions to users and groups. Set DataLakePrincipalIdentifier to user:user-name, where user-name is the user name in the Identity Store, or to group:group-display-name.

    The following example grants SELECT on all tables in the retail database to a user.

    aws lakeformation grant-permissions \ --principal '{"DataLakePrincipalIdentifier": "user:mary_major@example.com"}' \ --permissions "SELECT" \ --resource '{"Table": {"DatabaseName": "retail", "TableWildcard": {}}}'

    The following example grants SELECT on all tables in the retail database to a group.

    aws lakeformation grant-permissions \ --principal '{"DataLakePrincipalIdentifier": "group:data-analysts"}' \ --permissions "SELECT" \ --resource '{"Table": {"DatabaseName": "retail", "TableWildcard": {}}}'
  3. Verify access. After a user runs a query, the lakeformation:GetDataAccess event in CloudTrail shows the user's name next to the carrier role. For more information, see Auditing user access in CloudTrail logs.

Note

User attributes aren't available for IAM Identity Center users. To grant permissions based on user attributes, use IAM federation. For more information, see Granting permissions based on user attributes.