Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Query table in Google BigQuery has error "Access Denied: BigQuery BigQuery: Permission denied while globbing file pattern."

I'm new with Google BigQuery. Please forgive me if my question is a little simple.

Let me clarify the background of the issue:

  1. Account1 create a bucket (Multi-region) and external table.

    enter image description here

  2. Account1 can query the external table data successfully.

    enter image description here

  3. Grant Account2 below roles on the project.

    enter image description here

  4. Account2 log in BigQuery can see the table, but can't query data, with below error.

    enter image description here

I have done some research and enable BigQuery API, issue still occurs.

like image 244
Qiuyun Yu Avatar asked Feb 03 '26 01:02

Qiuyun Yu


1 Answers

As you are reading data from a bucket, you should also give the second user access to read the data from the given bucket. Click on the bucket and from the menu select "Edit bucket permissions", then click "Add member" and grant the second user the "Storage object viewer" role. Alternatively you can use the IAM and grant this role across the whole project and thus granting read access to all buckets.

like image 146
Hristo Hristov Avatar answered Feb 04 '26 16:02

Hristo Hristov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!