How does BigQuery access control work, from IAM roles to row-level and column-level security?

Quick Overview

Explain how BigQuery controls access with IAM roles at the project, dataset and table level, and how row access policies and policy-tag column security narrow what a user sees. Tests practical knowledge of query permissions, authorized views, data masking and least-privilege setup.

How does BigQuery access control work, from IAM roles to row-level and column-level security?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How does access control work in BigQuery, including IAM roles and granular features like row-level and column-level security? Assume a shared analytics project where different teams need different slices of the same tables. ```hint Separate the layers Split the question into three parts: who may run queries, who may read a dataset or table, and what a permitted reader sees inside that table. ``` ### What a Strong Answer Covers - How IAM roles and the resource hierarchy decide who can run jobs and who can read data, and why those are separate permissions - Grants at dataset, table or view level, and sharing a slice through authorized views - How column-level security works with policy tags, and what a user without access sees - How row access policies filter rows, and what happens to users who are in no policy - Least-privilege practice: groups, narrow roles, lowest scope ### Follow-up Questions - A user has `dataViewer` on a dataset but their query still fails with a permission error. What are the likely causes? - How would you let analysts count and join on an email column without ever seeing the raw addresses? - How would you give each salesperson only their own accounts without writing one policy per person? - When would you choose an authorized view over a row access policy to restrict rows?

Overview: Explain how BigQuery controls access with IAM roles at the project, dataset and table level, and how row access policies and policy-tag column security narrow what a user sees. Tests practical knowledge of query permissions, authorized views, data masking and least-privilege setup.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

How does access control work in BigQuery, including IAM roles and granular features like row-level and column-level security?

Assume a shared analytics project where different teams need different slices of the same tables.

What a Strong Answer Covers Guidance

  • How IAM roles and the resource hierarchy decide who can run jobs and who can read data, and why those are separate permissions
  • Grants at dataset, table or view level, and sharing a slice through authorized views
  • How column-level security works with policy tags, and what a user without access sees
  • How row access policies filter rows, and what happens to users who are in no policy
  • Least-privilege practice: groups, narrow roles, lowest scope

Follow-up Questions Guidance

  • A user has dataViewer on a dataset but their query still fails with a permission error. What are the likely causes?
  • How would you let analysts count and join on an email column without ever seeing the raw addresses?
  • How would you give each salesperson only their own accounts without writing one policy per person?
  • When would you choose an authorized view over a row access policy to restrict rows?