bq cmd query Google Sheet Table occur "Access Denied: BigQuery BigQuery: No OAuth token with Google Drive scope was found" Error

I presume you are using bq command line tool which comes with Cloud SDK.

To use bq you had to procure credentials, most likely you used

gcloud auth login

By default these credentials do not get drive scope. You have to explicitly request it via

gcloud auth login --enable-gdrive-access

Now running bq to access Google Drive data should work.


From the comments: for some people, it seems to be necessary to run

gcloud auth revoke

before logging in again. (Deleting ~/.config/gcloud would also work, but is probably overkill.)


Chances are the 'https://www.googleapis.com/auth/drive.readonly' scope is missing in the credentials of your request.

For details, see: Credentials Error when integrating Google Drive with