Prerequisites
- An active Google Cloud project
- The BigQuery API enabled in that project
- Permission to create service accounts and assign IAM roles in your GCP project
Create the service account
A service account is a Google account that an application uses to make authorized API calls on its own behalf.- Open the GCP Console and go to IAM & Admin > Service Accounts.
- Click + CREATE SERVICE ACCOUNT.
- Enter a descriptive Service account name, for example
Wisdom-bigquery. The Service account ID is generated automatically from the name. - Optionally, add a Service account description such as
Service account for WisdomAI BigQuery connectivity. - Click CREATE AND CONTINUE.
Assign IAM roles
WisdomAI needs three roles to read metadata, run queries, and stream results efficiently from BigQuery:- BigQuery Data Viewer: view BigQuery data and metadata
- BigQuery Job User: run BigQuery jobs, including queries
- BigQuery Read Session User: retrieve data efficiently through the BigQuery Storage API
- On the Grant this service account access to project step, open the Select a role dropdown.
- Add BigQuery Data Viewer, BigQuery Job User, and BigQuery Read Session User.
- Click DONE.
Restrict access to specific datasets
If you want WisdomAI to access only certain datasets in your project, grant data roles at the dataset level instead of the project level.- Open BigQuery in the GCP Console and select the dataset you want to share.
- Click SHARE DATASET.
- In the Add principals field, enter the email address of the service account.
- Assign BigQuery Data Viewer and BigQuery Read Session User to the service account for this dataset.
- Repeat for every dataset WisdomAI needs to access.
- Assign BigQuery Job User once at the project level. This role cannot be granted at the dataset level.
Generate a JSON key
WisdomAI authenticates with BigQuery using a JSON key file associated with the service account.- Go back to IAM & Admin > Service Accounts and click the service account you created.
- Open the KEYS tab.
- Click ADD KEY > Create new key.
- Select JSON as the key type and click CREATE.
Next steps
Connect to Google BigQuery
Use the service account to create a BigQuery connection in WisdomAI.
Connect to Snowflake
Connect to Snowflake directly or via a proxy using key-pair authentication.

