> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/fabricate/workspaces/workspace-server-connections/server-connection-details/google-bigquery.md). Agents can also search and read this documentation through its [MCP server](https://docs.tonic.ai/~gitbook/mcp).

# Google BigQuery

Note that when you test a Google BigQuery server connection, Fabricate prompts you to provide a dataset to use for the connection test.

For Google BigQuery:

<figure><img src="https://4109733485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmoU4gTR9LxlzHeWmQCUZ%2Fuploads%2FQtYxwV4dqca4vmDK1QZS%2FWorkspace_NewServerConnectionBigQuery.png?alt=media&amp;token=91f03649-5bc1-4a4b-82d7-d979478cdd5e" alt=""><figcaption><p>New Server Connection panel for a Google BigQuery server connection</p></figcaption></figure>

## Providing the project identifier

In the **Google Cloud Project ID** field, provide the identifier of the Google Cloud project where the data is located.

## Connecting through an SSH tunnel

To connect through an SSH tunnel:

1. Check the **Connect through a tunnel** checkbox.
2. From the **Tunnel** dropdown list, either:
   * Select an existing network tunnel to use.
   * To create a new tunnel, select **Add a new workspace network tunnel**.

If you select the option to create a new tunnel, Fabricate displays the **Add Network Tunnel** panel for you to configure the new tunnel.

For information about how to configure a network tunnel, go to [Configuring available SSH tunnels for a workspace](https://docs.tonic.ai/fabricate/workspaces/workspace-network-tunnels.md#adding-a-tunnel).

## Setting the authentication

### Using a service account key

To use a service account key for authentication:

1. From the **Authentication** dropdown list, select **GCP Service Account JSON Key**.
2. In the **Service Account Key (JSON)** field, provide the service account key to use to connect to the project. [How to generate a service account key](https://docs.cloud.google.com/iam/docs/keys-create-delete).

### Using service account impersonation (self-hosted only)

Before you can use this option, you must configure at least one available [GCP service account for the workspace](https://docs.tonic.ai/fabricate/workspaces/gcp-service-accounts.md).

To use service account impersonation:

1. From the **Authentication** dropdown list, select **GCP Service Account Impersonation**.
2. From the **Service Account** dropdown list , select the configured service account to use.

## Setting the project location

In the **Location** field, specify the location of the project.

If you do not provide a location for the server connection, then when you connect to a dataset, Fabricate uses the dataset to determine the location.

## Setting up access to Google BigQuery

Fabricate requires the following permissions to work with Google BigQuery.

Grant the service account the minimum privileges that they need to perform these operations:

<table><thead><tr><th width="166.28515625" valign="top">Level</th><th width="310.76171875" valign="top">Built-in role</th><th valign="top">Exact permissions required</th></tr></thead><tbody><tr><td valign="top">Project (where jobs run)</td><td valign="top">BigQuery Job User (<code>roles/bigquery.jobUser</code>)</td><td valign="top"><code>bigquery.jobs.create</code></td></tr><tr><td valign="top">Dataset (where data is read and written)</td><td valign="top"><strong>BigQuery Data Editor</strong> (<code>roles/bigquery.dataEditor</code>)</td><td valign="top"><code>bigquery.datasets.get</code><br><code>bigquery.tables.create</code><br><code>bigquery.tables.get</code><br><code>bigquery.tables.getData</code><br><code>bigquery.tables.list</code><br><code>bigquery.tables.updateData</code><br><code>bigquery.tables.delete</code></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.tonic.ai/fabricate/workspaces/workspace-server-connections/server-connection-details/google-bigquery.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
