Analyzing a principal's access to Data Catalog resources - 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.

Analyzing a principal's access to Data Catalog resources

With the AWS Lake Formation AnalyzeAccess API operation, you can see what a principal can do on an AWS Glue Data Catalog (Data Catalog) resource, and why. For a catalog, database, or table, AnalyzeAccess evaluates the principal's Lake Formation permissions and returns the following information:

  • The actions that the principal is authorized to perform.

  • For SELECT, whether access is restricted to certain columns, rows, or cells, and the filters that apply.

  • The Lake Formation permissions (grants) that contributed to the access.

  • The row-level security (RLS) policies that filter the principal's rows.

You can use AnalyzeAccess in the following ways:

  • Troubleshoot why a user can or can't query a table.

  • Verify permissions before you onboard a new principal.

  • Audit the effect of different grants and RLS policies.

AnalyzeAccess only reports access. It doesn't change permissions, and it doesn't access your data. With it, you can troubleshoot and audit access without tracing each grant and policy yourself.

You can analyze the following principals:

  • AWS Identity and Access Management (IAM) users and roles.

  • IAM Identity Center users and groups, such as user:mary_major@example.com.

To evaluate an IAM Identity Center user's session as it runs on an IAM role, pass that role (the carrier role) in Groups.

To see how access changes with different attributes, pass ContextAttributes. These attributes override the principal's IAM principal tags (IAM) or identity provider claims (IDP) for the analysis.