BigQuery Credential Problems when Accessing Google Sheets Federated Table

后端 未结 2 557
后悔当初
后悔当初 2020-12-11 19:51

I defined a table as a federated table which refers to a google sheet. It works perfectly well when I query it from the google bigquery web UI. However, if I try to query

相关标签:
2条回答
  • 2020-12-11 20:13

    I am not used to Tableau but had a similar issue with the Bigquery API in my Rails app using a Google services account.

    There were two issues:

    • the scope of Bigquery, by default it only has access to the bigquery API, but you may add other scopes, like drive and spreadsheets. See here for Tableau https://help.tableau.com/current/pro/desktop/en-us/examples_googlebigquery.htm under the section Manually embed attributes in the XML of the workbook or data source file, the first example contains a SCOPE attribute. Each scope is separated by an empty space.

    • the access right to the document, in my case I had to ask the owner of the spreadsheet to give permission to my services account, using the email of the same services account, even so services account was created by a super admin and spreadsheet was created by a team member of the same organization.

    I hope that helps.

    0 讨论(0)
  • 2020-12-11 20:18

    This is something Tableau should fix. The problem is that when they send request to BigQuery, they only pass BigQuery API scope. However they should also request GoogleDrive scope.

    0 讨论(0)
提交回复
热议问题