--- title: "Google BigQuery Authentication" slug: "google-bigquery-authentication" description: "Covers Google BigQuery authentication in Insider One, including service account setup, JSON keys, bucket permissions, IP allowlisting, and key rotation." updated: 2026-11-01T18:30:54Z published: 2026-11-01T18:30:54Z canonical: "academy.insiderone.com/google-bigquery-authentication" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Google BigQuery Authentication This page lists what you prepare in Google Cloud and what you enter in Insider One to create a Google BigQuery authentication. For instructions on how to create, use, and manage authentications, refer to Authentications. ## Before you begin - A Google Cloud project with Google BigQuery enabled. - A Service Account for Insider One with the **BigQuery Data Viewer**, **BigQuery Job User**, and **BigQuery Metadata Viewer** roles, and its JSON key file. To create them, refer to [Create a Service Account](/docs/google-bigquery-authentication#create-a-service-account). - Access to the datasets and tables that contain user and event data. - The location of your dataset. You can find it on the details page of the table or view you are using. ### Create a Service Account 1. Go to the [Google Cloud Console - Service Accounts page](https://console.cloud.google.com/projectselector2/iam-admin/serviceaccounts?supportedpurview=project). 2. Select your project from the top navigation bar. 3. Click **Create Service Account**. 4. Enter a name (for example, insider-bigquery-integration) and a description. 5. Click **Create and Continue**. 6. To assign the required roles, add the following roles in the step that grants this service account access to the project: - BigQuery Data Viewer (roles/bigquery.dataViewer) - BigQuery Job User (roles/bigquery.jobUser) - BigQuery Metadata Viewer (roles/bigquery.metadataViewer) 7. After you add the roles, click **Done**. Your service account appears in the list. 8. In the **Service Accounts** list, click the email of your new service account. 9. Go to the **Keys** tab. 10. Click **Add Key**, then **Create new key**. 11. Select **JSON** and click **Create**. The JSON key file downloads automatically to your computer. > [!NOTE] > For further details, refer to the Google documentation on [creating and managing service accounts](https://docs.cloud.google.com/iam/docs/service-accounts-create) and on [Google BigQuery predefined IAM roles](https://docs.cloud.google.com/bigquery/docs/access-control#predefined_roles). > [!WARNING] > Always use a dedicated service account with least-privilege access. ## Enter the authentication details Open the Google BigQuery authentication form as described in the **Create an authentication** section of Authentications. The form has three steps. 1. Create a dedicated Service Account for Insider One or select an existing one in your Google Cloud Platform account. Grant it the required **BigQuery Data Viewer**, **BigQuery Job User**, and **BigQuery Metadata Viewer** permissions. 2. Upload the JSON file you generated in your Google BigQuery account. Upload a JSON file no larger than 5 KB. The script values are filled in automatically from the JSON file you upload. 3. To create a dedicated bucket for Insider One and grant the required permissions to your Service Account, copy the following script from the form, replace the DATASET_LOCATION placeholder with your actual value, and run the script in Cloud Shell. The form pre-fills the bucket name for your account. ```bash gcloud storage buckets create gs://insider- \  --project= \  --location= \  --uniform-bucket-level-access gcloud storage buckets add-iam-policy-binding gs://insider- \  --member="serviceAccount:" \  --role="roles/storage.objectAdmin" ``` > [!NOTE] > You cannot change the bucket name. Use the bucket name that the authentication form provides. > [!NOTE] > The script grants your service account the Storage Object Admin role on the dedicated bucket. Insider One uses this access only to write and delete files in its own run folders. It does not read or delete any other objects in the bucket. During verification, Insider One writes a test file named insider-verify-write-access and deletes it immediately. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/01-bigquery-form-empty.png) ## Allowlist the Insider One IP addresses The form ends with this information box: "Make sure you allowlist the Insider One IP Addresses to enable data sync with Insider One." To see the addresses, click **Check Insider One IP Addresses**. ## Verify and save the authentication 1. Click **Verify Authentication**. After a successful verification, the button turns into a green **Authenticated** label with a check mark. 2. Click **Save**. ## How Insider One handles your service account key - The JSON key is required for the integration to keep working, not only during setup. You upload it once. - Insider One stores the key encrypted and decrypts it only when a sync starts. - You can rotate the key without creating a new authentication. For the steps, refer to [Rotate the service account key](/v1/docs/google-bigquery-authentication#rotate-the-service-account-key). - Only key-based authentication is supported. Other methods, such as Workload Identity Federation, are not supported. ### Rotate the service account key You can rotate your service account key without creating a new authentication. Upload the new JSON key to your existing authentication and verify it. 1. In Google Cloud, create a new JSON key for your service account. For the steps, refer to [Create a Service Account](/docs/google-bigquery-authentication#create-a-service-account). 2. If an active integration or a zero-copy segment uses this authentication, pause it. 3. Open your existing Google BigQuery authentication and upload the new JSON key file. 4. Click **Verify Authentication**, then click **Save**. 5. Resume the integration or zero-copy segment that you paused. 6. After the first run with the new key completes, delete the old key in Google Cloud. ## Related - [Google BigQuery](/external-platform-integrations-google-bigquery.md) - [Send Google BigQuery Data to Insider One](/send-google-bigquery-data-to-insider-one.md)