The correct way to provide BigQuery Client Tools for a user for a table supported by sheets, but the API still does not work

In our organization, we have a standard user who created all the projects, tables and some Google tables that they indicate.

We created another user in the organization, granted them Bigquery Data Viewer and Bigquery Data User permissions, and allowed them access to the Google Sheet. They have access to standard tables, but not those supported by Google Sheets; they get an error Encountered an error while globbing file pattern.

Granting permission to the new Bigquery Editor user, they can create their own tables supported by sheets, but they get this dialog box:

Bigquery client tools would like to allow

After granting permissions, we can remove the Bigquery Editor permission, and the user continues to access all existing Bigquery tables, including those supported by the sheets.

In the new Google account https://security.google.com/settings/security/permissions we see that they have added Bigquery Client Tools:

Google Account Shows Bigquery Client Tools

Question 1: What is the correct way to grant this permission to new users? We found two workarounds:

  • Take the URL from the pop-up window and edit it for new users without having to give them editor permission.
  • Ask users to save the query to Google Sheets, which pops up.

But we did not find a software way to give users this permission.

Further...

However, the API still seems to have problems. We ran:

 gcloud auth login --enable-gdrive-access # approve permissions in the web browser for the new user bq query --apilog=apil.log "SELECT * FROM [warehouse:catalog.table]" 

and our log shows either "An internal error occurred and the request could not be completed." , or "Encountered an error while globbing file pattern." ; eg:

 INFO:root:{ [...] "jobReference": { "projectId": [...] "jobId": "bqjob_r2410ded84270edc0_00000158fdea47bb_1" }, "status": { "state": "DONE", "errorResult": { "reason": "internalError", "message": "An internal error occurred and the request could not be completed." }, "errors": [ { "reason": "internalError", "message": "An internal error occurred and the request could not be completed." } ] }, [...] } 

Question 2: What else do we need to do to provide data access through the API / cli?

+7
google-drive-sdk permissions google-bigquery
source share

No one has answered this question yet.

See similar questions:

3
Error "An error was detected while trying to file template" when using the BigQuery API with Google Sheets
0
How to split a BigQuery spreadsheet whose data source is Google Spreadsheet?

or similar:

3
Error "An error was detected while trying to file template" when using the BigQuery API with Google Sheets
3
BigQuery credential issues accessing the Google Sheets spreadsheet
one
Query data from a spreadsheet based on Google Sheets in BigQuery via API using a service account
one
The Google Drive table supported by the Bigquery table cannot process the string "804932999580448"
0
BigQuery Simba ODBC Connection - OAuth Error in Google Drive
0
Google BigQuery Create / Add to Table from Avro internalError
0
How to solve the BigQuery error "query could not be completed"?
0
How to split a BigQuery spreadsheet whose data source is Google Spreadsheet?
0
GoogleApiException: Google.Apis.Requests.RequestError Backend [500] error while streaming to BigQuery
0
How do I authenticate a service account to query the BigQuery table supported by GDrive?

All Articles