Xplenty uses highly secured certificate-based authentication for connecting to your Google BigQuery Dataset. You need to grant Xplenty access only to projects and associated datasets that you specifically select. This article discusses providing Xplenty access on your Google BigQuery dataset and then details creating the BigQuery connection in Xplenty.
To run Load jobs, grant READ permissions to Xplenty for the relevant BigQuery dataset project container:
- Access your Google Cloud Console.
- Click the project name for which you want to grant Xplenty access.
- On the sidebar, choose IAM & Admin -> IAM
- Click +Add.
- Paste Xplenty's Google Cloud email under New Members
On Select a Role, add BigQuery Data Viewer.
- Then click Add Another Role and add BigQuery Job User.
- Click Save.
To enable Xplenty to write to a specific dataset, grant WRITE permissions to Xplenty for the relevant BigQuery Dataset:
- Access your BigQuery console.
- In the BigQuery sidebar, under Resources, select your project, then select your dataset
Click SHARE DATASET
- Paste Xplenty's Google Cloud email under Add members
On Select a role, add BigQuery Data Editor
- Click Add.
Source Component Access mode permission
BigQuery source component has two access modes, Table and Query
For Table access mode, Xplenty connects directly to the dataset and BigQuery Data Viewer role would suffice.
For Query access mode, Xplenty creates a staging table based on the query and BigQuery Data Editor role is needed.
For more information, see Google BigQuery Access Control.
External tables access
In order to read data from external tables that are based on Google Sheets, share the sheets (or a directory containing them) with the service account
To create a Google BigQuery connection in Xplenty
- Click the Connections icon (lightning bolt) on the top left menu.
- To create a connection, click New connection.
- Choose Google BigQuery.
- Name the connection.
- Enter the Project ID and Dataset ID in their respective fields.
- Select the region where your BigQuery is hosted.
- Click Test Connection to make sure the connection details are correct.
- Click Create connection to create the connection.