Google BigQuery
Last updated
Last updated
As a best practice, set up a dedicated Google Cloud Platform (GCP) Service Account user and assign it a specific role(s) before configuring Connecty. This approach isolates your integration credentials and simplifies permission management, ensuring a seamless no-code connection.
GCP Project Identifier where your BigQuery is setup.
Dedicated Service Account (SA) user for Connecty.
Appropriate roles and permissions for the dedicated SA user.
The SA user access key.
Multi-region data location of your BigQuery dataset.
Your Project ID uniquely identifies your BigQuery project. To get the project ID you can:
In the top-left Project selector dropdown, locate your project (under which your BigQuery instance is setup).
Copy the ID
.
Examples:
✅ my-project-connecty
- correct and expected identifier.
❌ 950600139040
- incorrect. That is usually a project number or an organisation ID
To enable Connecty AI to access and query data within your BigQuery service, the designated GCP role must contains the following GCP permissions:
Metadata Access
bigquery.datasets.get
bigquery.datasets.getIamPolicy
bigquery.models.list
bigquery.models.getMetadata
bigquery.routines.list
bigquery.routines.get
READ permissions
bigquery.tables.list
bigquery.tables.get
bigquery.tables.getData
bigquery.tables.getIamPolicy
Query (job) history access
bigquery.jobs.list
bigquery.jobs.listAll
bigquery.jobs.get
bigquery.jobs.create
While combination of GCP built-in roles (BigQuery Data Viewer + BigQuery Job User + BigQuery Resource Viewer
) inherently satisfy these requirements, it is best practice to create a custom role that includes only the minimum necessary privileges outlined above.
To generate an access key for Service Account user you can either use GCP console or gcloud
CLI interface.
Go to Service Accounts
and found the apprioprate SA user.
Click on that user and open Keys
tab.
Click on Add Key
and then Create new key
. Select JSON format for the key.
Download generated access key file.
In case when you have gcloud
installed locally and authenticated for your project in GCP, you can generate new access key file for a SA user using the following command:
Go to .
The following script is an example how one can create new dedicate Service Account user in GCP for ConnectyAI with granted new custom role with all required permissions. This script assumes that gcloud
is installed locally. In case you don't have it, please follow .
Please remember to replace PROJECT_ID
and potentially ROLE_ID
accordingly to your GCP setup.
Go to IAM service in .
In case you've changed SA user ID or email, please update the values in the script above. Values in the script corresponds to setup mentioned in Custom SA user and Role.
To fully setup Connecty integration with BigQuery, we need infromation in which your datasets are stored. It can be either US
or EU
. The easiest way to found out which multi-region your dataset uses is to by clicking on any object in that dataset and go to details
tab, like on the following screenshot example: