Skip to content
Changelog

Report a bug

Connect BigQuery

Use a BigQuery connection when a teammate needs to inspect schemas and run read-only SQL against your warehouse. We recommend connecting BigQuery with a Google Cloud service account so access is tied to your organization instead of one person’s Google login.

You need:

  • A Google Cloud project with BigQuery enabled.
  • Permission to create or manage a Google Cloud service account.
  • Permission to grant that service account access to the projects, datasets, or tables the teammate should query.
  • Permission to let the service account create and run BigQuery query jobs.
  • A decision about the narrowest BigQuery access the teammate should have.

Google’s reference docs cover creating service accounts, creating JSON service account keys, and BigQuery IAM roles.

  1. In Google Cloud Console, open IAM & Admin and choose Service Accounts.
  2. Create a service account for Type, such as type-bigquery.
  3. Grant the service account only the BigQuery access the teammate needs.
  4. Give it BigQuery Job User on the project where queries should run. This lets the service account create and execute BigQuery query jobs.
  5. Give it read access to the data it should query, usually BigQuery Data Viewer on the target datasets or tables.
  6. Avoid broad roles like Owner, Editor, or project-wide Data Owner unless the teammate truly needs that access.

For a simple project-level setup, the role assignment should include BigQuery Job User and BigQuery Data Viewer:

Google Cloud IAM role assignment showing BigQuery Job User and BigQuery Data Viewer selected

If the teammate will query datasets across multiple projects, make sure the service account can create jobs in the query project and can read each dataset it needs.

  1. Open the service account you created.
  2. Go to Keys.
  3. Choose Add key and then Create new key.
  4. Select JSON.
  5. Download the key file.

Treat the JSON key like a password. Do not paste it into teammate instructions, skills, docs, or thread messages.

  1. Open the teammate that should use BigQuery.
  2. Open the teammate’s connector settings.
  3. Search for Google BigQuery.
  4. Choose Connect with service account JSON.
  5. Paste the full JSON key contents into Service account JSON.
  6. Connect and keep BigQuery assigned to the teammate that needs it.

The Type connection form should look like this:

Type Google BigQuery connector form showing the Connect with service account JSON option and Service account JSON field

Type stores the credential securely and uses it server-side when the teammate needs to inspect BigQuery metadata or run a bounded query.

After connecting, ask the teammate to list accessible BigQuery projects, datasets, or tables. Then try a small read-only query with a LIMIT against a known table.

  • Invalid service account JSON: Paste the full downloaded JSON file contents, including client_email, private_key, and the surrounding braces.
  • Permission denied: Confirm the service account can create and execute BigQuery query jobs with BigQuery Job User on the query project, and that it has read access to the dataset or table.
  • Dataset or table not found: Confirm the teammate is using the right project ID, dataset ID, and fully qualified table name.
  • Billing or API errors: Confirm BigQuery is enabled and the query project can run BigQuery jobs.
  • Compromised key: Disable or delete the key in Google Cloud, create a new JSON key, and reconnect BigQuery in Type.