Skip to content

Commit

Permalink
Update access-gdrive-credential.md (#5234)
Browse files Browse the repository at this point in the history
the solution provided isn't correct. this pr updates the solution to the
correct code. raised by [user
feedback](https://dbt-labs.slack.com/archives/C02NCQ9483C/p1712325416338229?thread_ts=1711637426.267879&cid=C02NCQ9483C)
  • Loading branch information
mirnawong1 authored Apr 5, 2024
2 parents a2853b3 + 0a1f7de commit 0d33022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/faqs/Troubleshooting/access-gdrive-credential.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ If you're seeing the below error when you try to query a dataset from a Google D
Access denied: BigQuery BigQuery: Permission denied while getting Drive credentials
```

Usually this errors indicates that you haven't granted the BigQuery service account access to the specific Google Drive document. If you're seeing this error, try giving the service account (client email seen [here](https://docs.getdbt.com/docs/dbt-cloud/cloud-configuring-dbt-cloud/connecting-your-database#connecting-to-bigquery)) you are using for your BigQuery connection in dbt Cloud, permission to your Google Drive or Google Sheet. You'll want to do this directly in your Google Document and click the 'share' button and enter the client email there.
Usually, this error indicates that you haven't granted the BigQuery service account access to the specific Google Drive document. If you're seeing this error, try giving the service account (client email seen [here](https://docs.getdbt.com/docs/dbt-cloud/cloud-configuring-dbt-cloud/connecting-your-database#connecting-to-bigquery)) you are using for your BigQuery connection in dbt Cloud, permission to your Google Drive or Google Sheet. You'll want to do this directly in your Google Document and click the 'share' button and enter the client email there.

If you are experiencing this error when using OAuth, and you have verified your access to the Google Sheet, you may need to grant permissions for gcloud to access Google Drive:

```
gcloud auth application-default login --scopes=openid,https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/sqlservice.login,https://www.googleapis.com/auth/drive
gcloud auth application-default login --disable-quota-project
```
For more info see the [gcloud auth application-default documentation](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login)

Expand Down

0 comments on commit 0d33022

Please sign in to comment.