admin管理员组文章数量:1335451
After authenticating to Google BigQuery using Google account, while using BigQuery console, I'm able to run my queries. These queries create a job (visible in pop ups).
But while executing the same with Go program running remotely, I get an error that I do not have create.job permission. I'm using the same Google account for authentication.
Does anybody know what can be the issue? Is any other account (like service account) used for running queries with APIs?
After authenticating to Google BigQuery using Google account, while using BigQuery console, I'm able to run my queries. These queries create a job (visible in pop ups).
But while executing the same with Go program running remotely, I get an error that I do not have create.job permission. I'm using the same Google account for authentication.
Does anybody know what can be the issue? Is any other account (like service account) used for running queries with APIs?
Share Improve this question asked Nov 20, 2024 at 7:30 user2255299user2255299 1908 bronze badges1 Answer
Reset to default -2- Incorrect IAM Permissions Ensure the service account or user making the request has the required permissions for the operation. For example:
For querying data, you need bigquery.dataViewer or bigquery.user. For creating datasets, you need bigquery.dataOwner. Solution:
Assign the correct IAM roles to the service account via the Google Cloud Console. Go to IAM & Admin > IAM. Add or modify the roles assigned to your service account or user.
本文标签: Google BigQuery permission error while using Go APIsStack Overflow
版权声明:本文标题:Google BigQuery permission error while using Go APIs - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742374594a2462907.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论