Granting permissions to users and groups - 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.

Granting permissions to users and groups

With enhanced trusted identity propagation, you can grant AWS Lake Formation permissions on AWS Glue Data Catalog resources directly to the users and groups in your corporate identity provider (IdP), such as Okta, Ping Identity, or Microsoft Entra ID.

When a user runs a query, the analytics application or engine assumes an IAM role on the user's behalf. The user's identity is carried with the role session through every service that the request reaches. Lake Formation authorizes the request based on the permissions that you granted to the user and the user's groups. AWS CloudTrail records the user's name next to the IAM role.

Enhanced trusted identity propagation works with both ways that your users sign in to AWS:

  • IAM federation – Your IdP is a SAML 2.0 or OpenID Connect (OIDC) identity provider in IAM, and users assume IAM roles with AssumeRoleWithSAML or AssumeRoleWithWebIdentity. You don't need additional setup. You can grant permissions to users, to groups, and to users who have specific attributes from your IdP, such as a department. For more information, see Identity providers and federation into AWS in the IAM User Guide.

  • AWS IAM Identity Center – Your IdP is connected to IAM Identity Center, or you use the IAM Identity Center directory. You enable enhanced trusted identity propagation once in IAM Identity Center, and then grant permissions to user names and group names. You don't need to connect Lake Formation with IAM Identity Center. For more information, see Trusted identity propagation overview in the AWS IAM Identity Center User Guide.

With enhanced trusted identity propagation, you can do the following:

  • Grant permissions to users, not roles – You grant permissions to user names and group names, such as user:mary_major@example.com, with the same grant methods that you use for IAM principals, including LF-Tag expressions.

  • Scale permissions with user attributes – You grant permissions and filter rows based on the attributes that your IdP sends for IAM federated users, so new users get the right access without new grants.

  • Audit the user, not only the role – You see the user's name in CloudTrail events and in the Lake Formation console instead of an opaque identifier. Your existing CloudTrail queries that use the role continue to work.

  • Keep the identity across hops – You keep the user's identity with the session through role chaining and scheduled jobs, so a job runs with the permissions of the user who scheduled it.

If you set up trusted identity propagation before enhanced trusted identity propagation was available, you connected Lake Formation with IAM Identity Center and granted permissions to Identity Store IDs. This guide calls that setup legacy trusted identity propagation. Your legacy grants continue to work, and you can move to enhanced trusted identity propagation without migrating them. For more information, see Moving from legacy to enhanced trusted identity propagation.

Terms and definitions

The following terms describe how Lake Formation works with propagated user identities.

Carrier role

The IAM role that an application or query engine assumes to access data on behalf of a user. The user's identity is carried with the carrier role's session.

Subject

The value that identifies a user, such as an email address or a user name. Lake Formation matches user: grants against the subject.

User attributes

Key-value pairs that your IdP includes for a user who signs in through IAM federation, such as department=finance. You can use user attributes in grant conditions and in row-level security policies.

For considerations and limitations, see Trusted identity propagation considerations and limitations.