[英]My service account is not able to access BigQuery Data even if it have sufficient permission
I want to query data in BigQuery by using BigQuery API. These are what I've done.我想通过 BigQuery API 查询 BigQuery 中的数据。这些是我所做的。
Access Denied: Table [project ID]-[table name]: User does not have bigquery.tables.get permission for table [project ID]-[table name].访问被拒绝:表 [项目 ID]-[表名称]:用户没有表 [项目 ID]-[表名称] 的 bigquery.tables.get 权限。
This is very weird because on BigQuery predefined IAM roles in Google document, "bigquery.tables.get" permission is included in "BigQuery Data Editor".这很奇怪,因为在 Google 文档中的BigQuery 预定义 IAM 角色上,“BigQuery 数据编辑器”中包含“bigquery.tables.get”权限。
screenshot截屏
I double checked that the service account have "BigQuery Data Editor" and "BigQuery User" permission from IAM & Admin menu.我仔细检查了服务帐户是否具有来自 IAM 和管理菜单的“BigQuery 数据编辑器”和“BigQuery 用户”权限。
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 . ps 我按照这个步骤使用了微软提供的数据分析工具DataBricks软件。 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.起初我怀疑DataBricks上的配置,但是当我成功地使用另一个BigQuery帐户检索数据时,我认为问题存在于这个BigQuery帐户上。
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.像SELECT SESSION_USER() as whoami
应该确认事情。
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.另一个最有可能导致此错误的原因是该工具正在尝试使用与您预期不同的项目 ID。 Does databricks have a configuration option for defining the default project ID to use? databricks 是否有用于定义要使用的默认项目 ID 的配置选项?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.