> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fabi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Big Query

> Connecting Fabi.ai to your [BigQuery](https://cloud.google.com/bigquery) instance.

<Warning>
  Before connecting, ensure that you whitelist Fabi.ai's IP addresses in your firewall or security group settings:

  * `3.232.60.87`
  * `54.172.255.171`
</Warning>

# Creating a service account user

## 1. Go to the Google Cloud Console

* Open the [Google Cloud Console](https://console.cloud.google.com/).

## 2. Navigate to the "IAM & Admin" Section

1. In the navigation menu, go to **IAM & Admin** > **Service Accounts**.
   * Direct link: [Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts)

## 3. Create a New Service Account

1. Click the **+ CREATE SERVICE ACCOUNT** button.

2. Provide the following details:
   * **Service account name**: Choose a meaningful name (e.g., `bigquery-service-account`).
   * **Service account ID**: This will auto-generate based on the name.
   * **Service account description**: Optionally, add a brief description.

3. Click **CREATE AND CONTINUE**.

## 4. Grant Permissions to the Service Account

1. In the next step, assign roles to the service account:
   * Select **BigQuery Admin** or other relevant roles, depending on your needs.
   * For detailed role descriptions, see the [BigQuery Roles documentation](https://cloud.google.com/bigquery/docs/access-control#bigquery_roles).

2. Click **CONTINUE**.

## 5. Set Up Access to the Service Account (Optional)

1. If needed, specify users or groups who can access or manage the service account.
2. Click **DONE** to complete the creation process.

## 6. Generate and Download a Key

1. In the **Service Accounts** list, locate your new service account.
2. Click the **⋮ (More Actions)** menu and select **Manage Keys**.
3. Click **ADD KEY** > **Create new key**.
4. Select the key type:
   * Choose **JSON**.
5. Click **CREATE** to download the key file.
   * Save the JSON file securely, as it contains sensitive credentials.

For more details, refer to the [Service Accounts documentation](https://cloud.google.com/iam/docs/service-accounts).

# Connecting Big Query to Fabi.ai

Once you've generated your service user credentials, follow the steps in [Connecting to Your Data](/getting_started/connect_data_sources)
<Tip>For information about our industry-leading security practices, check out our [Security hub](https://www.fabi.ai/security).</Tip>
