From 0a1f7de1c3fb397530ea1d7152580ca86041324b Mon Sep 17 00:00:00 2001 From: Mirna Wong <89008547+mirnawong1@users.noreply.github.com> Date: Fri, 5 Apr 2024 15:04:44 +0100 Subject: [PATCH] Update access-gdrive-credential.md 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) --- website/docs/faqs/Troubleshooting/access-gdrive-credential.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/faqs/Troubleshooting/access-gdrive-credential.md b/website/docs/faqs/Troubleshooting/access-gdrive-credential.md index 64799291ee2..6ed65f92bfb 100644 --- a/website/docs/faqs/Troubleshooting/access-gdrive-credential.md +++ b/website/docs/faqs/Troubleshooting/access-gdrive-credential.md @@ -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)