最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Google BigQuery permission error while using Go APIs - Stack Overflow

programmeradmin0浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default -2
  1. 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.

发布评论

评论列表(0)

  1. 暂无评论