question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BigQuery permissions error?

See original GitHub issue

Issue Summary

Not sure if this is a Redash or GCE issue. I have a service account on my project with BigQuery Admin permissions, and created the data source in Redash. However, when I click “Test Connection”, I get the following:

Connection Test Failed:
{ "error": { "errors": [ { "domain": "global", "reason": "accessDenied", "message": "Access Denied: Project PROJECT_ID: The user SERVICE_ACCOUNT@PROJECT_ID.iam.gserviceaccount.com does not have bigquery.jobs.create permission in project PROJECT_ID." } ], "code": 403, "message": "Access Denied: Project PROJECT_ID: The user SERVICE_ACCOUNT@PROJECT_ID.iam.gserviceaccount.com does not have bigquery.jobs.create permission in project PROJECT_ID." } }

I’ve triple-checked the project ID in the data source settings (side note: why isn’t this pulled from the JSON file by default?) and it’s correct, plus it’s correct in the uncensored error message. I’ve even tried setting the service account to Owner permissions, but it didn’t make a difference. Are these instructions for setting up BigQuery out of date or incomplete?

Technical details:

  • Redash Version: 1.0.0.b2815
  • Browser/OS: Chrome/Mac
  • How did you install Redash: Docker

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Dilem-macommented, May 18, 2018

Met this this morning. I solved it by giving the worker: JOB USER permission. This is correct because the error is related to jobs.create. Here’s a detailed permission form: https://cloud.google.com/bigquery/docs/access-control.

0reactions
shurijoccommented, Nov 13, 2020

Had a same problem here. And I solved this by delete IAM role member associated with BigQuery Admin. The member name started with deleted:.

Then create a service account for BigQuery and create datasource on redash.

Hope this would help someone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get the permission denied error when creating a ...
bigquery.tables.create role is used for creating new tables. You are getting this error because you do not have this permission enabled in your...
Read more >
Error messages | BigQuery - Google Cloud
Error message HTTP code Description stopped 200 This status code returns when a job is canceled. timeout 400 The job timed out.
Read more >
Dataset <DatasetName>: User does not have bigquery.tables ...
ERROR: "Access Denied: Dataset <DatasetName>: User does not have bigquery.tables.create permission for dataset <DatasetName>" while running ...
Read more >
Troubleshoot permission errors accessing datasets and tables
Are you having issues with querying BigQuery tables? Would you like to learn how to troubleshoot and resolve permission errors related to ...
Read more >
I'm receiving a "Permission denied while getting Drive ...
Usually this errors indicates that you haven't granted the BigQuery service account access to the specific Google Drive document.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found