I want to query data in BigQuery by using BigQuery API. These are what I've done.
Access Denied: Table [project ID]-[table name]: User does not have bigquery.tables.get permission for table [project ID]-[table name].
This is very weird because on BigQuery predefined IAM roles in Google document, "bigquery.tables.get" permission is included in "BigQuery Data Editor".
screenshot
I double checked that the service account have "BigQuery Data Editor" and "BigQuery User" permission from IAM & Admin menu.
screenshot
I try this process many times to confirm that I don't make a mistake, but the result won't changed. What can be the reason for this problem? Any comment will be appreciated.
ps I use Software named DataBricks, data analytics tool provided by microsoft, by following this step . FIrst I doubted the configuration on DataBricks, But as I succeeded to retrieve the data with another BigQuery account, I think the problem exist on this BigQuery account.
Possibly you're not running with the credentials you think? Can you run a query from your databricks tool to verify? Something like SELECT SESSION_USER() as whoami
should confirm things.
The other most likely thing that could cause this error is that the tool is trying to use a different project ID than you're expecting. Does databricks have a configuration option for defining the default project ID to use?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.