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
-
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:SetContextto role trust policies. For more information, see Trusted identity propagation overview in the AWS IAM Identity Center User Guide. -
Grant Lake Formation permissions to users and groups. Set
DataLakePrincipalIdentifiertouser:, whereuser-nameuser-nameis the user name in the Identity Store, or togroup:.group-display-nameThe following example grants
SELECTon all tables in theretaildatabase 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
SELECTon all tables in theretaildatabase to a group.aws lakeformation grant-permissions \ --principal '{"DataLakePrincipalIdentifier": "group:data-analysts"}' \ --permissions "SELECT" \ --resource '{"Table": {"DatabaseName": "retail", "TableWildcard": {}}}' -
Verify access. After a user runs a query, the
lakeformation:GetDataAccessevent in CloudTrail shows the user's name next to the carrier role. For more information, see Auditing user access in CloudTrail logs.
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.