Assigned
Status Update
Comments
ba...@google.com <ba...@google.com>
ba...@google.com <ba...@google.com> #2
Thanks for the report. I will route this to the appropriate internal team and update this when I hear back from them.
Description
This will create a public issue which anybody can view and comment on.
Problem you have encountered:
Users cannot get a list of BigQuery datasets where an account has access to without specifying a project [1, 2].
For that reason, users must use some type of script to get this list of projects beforehand such as [3]. However, [4] doesn't return those projects where the involved account has a BigQuery dataset-level access. Therefore, the script doesn't work as expected and users must manually insert the list of projects they want to use (which might miss a project where the account has access).
What you expected to happen:
[4] should return those projects where an account has BigQuery dataset-level access as well.
Steps to reproduce:
Other information (workarounds you have tried, documentation consulted, etc):
[4] might need to be implemented as a general purpose query system, including those BigQuery-based permissions.
Thank you in advance for your assistance!
[1] List datasets:
[2] List datasets where an account has access to:
bq ls --project_id=$project --format=prettyjson
[3] Suggested script:
[4] Get list of projects where an account has access to:
gcloud projects list --format="value(projectId)