Reputation: 512
Is it possible to create a bigquery service account to limit access to only 1 dataset? When I go through the service account generation process it appears to give access to an entire project and does not show options to limit to a specific data set.
Upvotes: 4
Views: 2237
Reputation: 742
Although this comment is late, but i would like to point out what I've done based on Daniel's answer to make it work:
BigQuery Job User
for my service account, let's say that the service account is A.BigQuery User
, BigQuery Data Viewer
, BigQuery Data Editor
role to service account A.Now only service account A can access to dataset B.
Hope it's helped.
Upvotes: 0
Reputation: 3034
Short answer is yes. But to do it you do not assign the privileges at the project level. You need to actually go and modify the dataset to do it. Check the documentation here: https://cloud.google.com/bigquery/docs/dataset-access-controls
It outlines the process with a few different methods.
Upvotes: 1