Guide to Connect BigQuery:
- Create a dedicated read-only service account for Go Fig. (Recommended)
- Enable the BigQuery API in your Google Cloud project.
- Collect the following details:
- Google Cloud project ID
- Service account JSON key file
- BigQuery location (e.g.,
US,EU)
1) Create a service account (recommended)
Create a dedicated read-only service account so Go Fig never has write access.1
Create the service account
In Google Cloud Console, go to IAM & Admin → Service Accounts and click + Create Service Account. Name it something like
gofig-bigquery, then click Create and Continue.2
Grant read-only roles
Add these three roles, then click Done:
- BigQuery Data Viewer: read access to datasets and tables
- BigQuery Job User: permission to run queries
- BigQuery Read Session User: efficient reads via the Storage API
3
Generate a JSON key
Open the service account, go to the Keys tab, click Add Key → Create new key, select JSON, and click Create. The key file downloads to your computer.
2) Enable the BigQuery API
In Google Cloud Console, select your project, go to APIs & Services → Library, search for “BigQuery API”, and click Enable.Wait 1-2 minutes after enabling for the API to activate. For sensitive data, you can grant the service account BigQuery Data Viewer on specific datasets instead of the whole project.
3) Connect Go Fig to BigQuery
1
Add BigQuery connection
Navigate to your Organization Data page and click Add data source. Select BigQuery from the list of database connections.

2
Enter connection details
Fill in your BigQuery connection information:
- Project ID: Your Google Cloud Project ID (e.g.,
my-analytics-project)- 6-30 characters, starts with a letter, lowercase letters, numbers, and hyphens only
- Service Account JSON: Paste the full contents of the JSON key file you downloaded
- Location: BigQuery location for your data (e.g.,
US,EU,us-central1); defaults toUS
Go Fig validates that the JSON contains
type (must be “service_account”), project_id, private_key_id, private_key, and client_email. It should start with {"type": "service_account"...}.
3
Connect to BigQuery
Click Connect to complete the setup. Go Fig will verify the connection, then encrypt and store your credentials securely.

