Skip to main content

Intro

This article explains how to connect Domo to Google BigQuery using Cloud Integrations, enable writeback to BigQuery, configure native transform, and set up OAuth authentication.
Note: Cloud Integrations setup consists of two parts: read-only, which enables virtual tables that read from BigQuery for creating cards, alerts, or inputs in Magic ETL DataFlows; and writeback, which adds the ability to write data back to BigQuery. You can start with read-only and configure writeback later.
A read-only integration authenticates in one of two ways: with a BigQuery service account, or with U2M OAuth only. With U2M OAuth, each user signs in with their own Google account, and no service account is needed. Magic ETL can’t currently use DataSets from an OAuth-only integration.

Prerequisites

Complete these steps before setting up the BigQuery integration. Create a Domo service account (recommended). You can use any Domo account, but creating a dedicated account is best practice. Assign the following roles:
  • Manage Cloud Accounts
  • Manage DataSet
For more information, see Managing User Roles and Grants. (Conditional) Create a service account in Google Cloud Console. Required if you authenticate with a service account, or to enable writeback and native transform. Choose one of the following authentication methods:
  • Option 1 — Key file. Create a BigQuery service account, grant the required roles and permissions (see Roles and Permissions below), add a key to the service account, and download the JSON key file for authentication.
  • Option 2 — Workload Identity Federation (WIF). Domo supplies the federation details; you build the trust in Google Cloud from them. See Set Up Workload Identity Federation below.

Set Up Workload Identity Federation

Domo owns one side of this trust relationship, so the provider type and the values that identify Domo are supplied by Domo Support: a role ARN for AWS, or an Issuer URL and audience for OIDC. You do not choose them.
  1. Open a Domo support ticket requesting BigQuery integration using WIF. Domo Support confirms which provider type applies to your instance and returns the values you need: a role ARN for AWS, or an Issuer URL and Allowed Audiences for OIDC. Which type applies depends on how your Domo instance is hosted, so request it rather than selecting one.
  2. Create a Workload Identity Pool in Google Cloud IAM, and add a provider using the details from Domo Support. Set the attribute mapping to match the provider type:
    • AWS: map assertion.arn to google.subject, and add attribute.aws_role mapped to assertion.arn.extract('assumed-role/{role_name}/'). This is the mapping Google recommends for an AWS workload that runs with a role, and the aws_role attribute lets you limit access to Domo’s role in the next step. For the AWS account ID on the provider, use the 12-digit number in the role ARN.
    • OIDC: map assertion.sub to google.subject.
  3. Create a BigQuery service account and grant the required roles and permissions, including Workload Identity User. See Roles and Permissions. Grant Workload Identity User on the service account itself, not at the project level, with this member:
    • AWS: principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL_ID/attribute.aws_role/ROLE_NAME, where ROLE_NAME is the part of the role ARN after role/.
    • OIDC: the workload identity pool principal.
  4. Download the JSON configuration file from the Connected Service Accounts panel. For an OIDC provider, use the audience Domo Support provided. For an AWS provider, Domo does not supply an audience. Generate the configuration with IMDSv2 enabled, as shown in Example: Set Up an AWS Provider From a Role ARN.
Do not edit the URLs in the generated file. Domo checks them and rejects a configuration in which they have been changed.
Important: If you use an OIDC provider, use the audience from Domo Support exactly as given. Domo can only request tokens for an audience it owns, so a configuration exported with a different audience fails when Domo tries to authenticate, and the resulting error does not name the audience as the cause. If you no longer have the value, ask Domo Support for it rather than substituting your own.

Example: Set Up an AWS Provider From a Role ARN

Suppose Domo Support sends you this role ARN:
Read two values from it: the AWS account ID is 123456789012, and the role name is example-ice. Then:
  1. When you add the AWS provider to your Workload Identity Pool, enter 123456789012 as the AWS account ID.
  2. Set the attribute mapping:
  3. On your BigQuery service account, grant Workload Identity User to this member, replacing PROJECT_NUMBER with the numeric project number of the project that holds the pool, and POOL_ID with the pool’s ID:
  4. Generate the JSON configuration file with IMDSv2 enabled. With the gcloud CLI, include --enable-imdsv2, replacing PROVIDER_ID with the provider’s ID and SERVICE_ACCOUNT_EMAIL with your BigQuery service account:
    If you download the file from the Google Cloud console instead, confirm that its credential_source section contains "imdsv2_session_token_url": "http://169.254.169.254/latest/api/token". Upload the file in Domo as described in Option 2: Use Workload Identity Federation (WIF).
Note: Do not use the role ARN itself as the member or in an attribute condition. Google sees Domo as a temporary session of the role, such as arn:aws:sts::123456789012:assumed-role/example-ice/SESSION_ID, not as the arn:aws:iam:: form, so a comparison with the role ARN never matches. Matching on the role name, as in step 3, also keeps working when the session changes. For details, see Google’s guide, Configure Workload Identity Federation with AWS or Azure, and select the AWS tab.

Roles and Permissions

The BigQuery service account must have the following roles. Read-only integration
  • Roles:
    • BigQuery Data Viewer
    • BigQuery Job User
    • Service Account Token Creator (only if using WIF)
  • Additional permissions:
    • bigquery.jobs.create
Note: BigQuery Job User is required for a read-only integration, not only for writeback. When you create the integration, Domo validates the connection by running a query, and BigQuery runs every query inside a job—so the service account must be able to create jobs. Grant these roles on the project you enter as the Project ID.
Note: With WIF, grant Service Account Token Creator on the service account itself, with the service account as the member. When a Magic ETL DataFlow running in Domo reads a BigQuery DataSet, BigQuery exports the data as files, and Domo uses the service account to sign the links it downloads those files with. Granting the role only to the workload identity pool principal lets Domo impersonate the service account, but does not let the service account sign. See Resolve a Magic ETL Error When Using WIF.
With U2M OAuth only, there’s no service account. Instead, each user who signs in needs BigQuery Data Viewer on the data they query, and BigQuery Job User on the default billing project. Writeback and native transform
  • Roles:
    • BigQuery Job User
    • Service Account Token Creator (only if using WIF)
  • Additional permissions:
    • bigquery.datasets.create
    • bigquery.datasets.delete
    • bigquery.datasets.get
    • bigquery.tables.create
    • bigquery.tables.delete
    • bigquery.tables.get
    • bigquery.tables.getData
    • bigquery.tables.list
    • bigquery.tables.update
    • bigquery.tables.updateData
    • resourcemanager.projects.get
    • bigquery.jobs.create
    • bigquery.jobs.get
    • bigquery.jobs.update
Note: Domo only deletes BigQuery tables and datasets it creates for temporary staging. Domo does not remove objects it did not create or objects intended to be permanent.

Review the Architectural Overview

The following diagram illustrates the Cloud Integrations–BigQuery integration.
BigQuery architecture diagram

Open the Domo on BigQuery Page

  1. In the navigation header, select Data Warehouse.
  2. Select Connect Data > BigQuery. The Domo on BigQuery page appears.
Domo on BigQuery page
  1. Select Connect BigQuery to create a new integration, or select Manage Integrations to modify existing integrations. If you selected Manage Integrations, a list of your integrations appears.
BigQuery cloud integrations list
  1. Select the wrench icon next to an integration to view available options. The options shown depend on your access level. From the integration overview, you can create a new integration, update an existing one, or configure writeback, native transform, and OAuth.

Create a BigQuery Integration

Begin on the Domo on BigQuery page (see Open the Domo on BigQuery Page).
  1. Enter a name to identify this BigQuery integration in Domo. The name does not need to match anything in BigQuery and can be changed later.
  2. (Optional) Enter a short description to help others understand the purpose of this integration. This description is visible only in the integration details.
  3. From Authentication method, select BigQuery Service Account or U2M OAuth.
  4. (Conditional) If you selected BigQuery Service Account, select an existing service account from BigQuery Service Account, or select Add Account to create a new one. This account authenticates with BigQuery and determines access to tables. To create a service account, see Create a BigQuery Account.
    Important: Changing the service account later may require remapping DataSets or Magic ETL DataFlows if access permissions differ.
BigQuery integration setup form
  1. (Conditional) If you selected U2M OAuth, from Select BigQuery OAuth Configuration, select an existing configuration, or select Add OAuth Config… to create a new one. For the configuration fields, see Configure OAuth. When the configuration is created, New OAuth configuration created appears. In Default billing project ID (case-sensitive), confirm the GCP project to bill for queries.
BigQuery integration form with U2M OAuth selected, an OAuth configuration, and a region
  1. Select your BigQuery region.
  2. Select Create Integration. A confirmation screen appears when the integration is created successfully.
  3. Select Proceed to Integration Overview. The integration opens.
Integration created successfully

Create a BigQuery Account

Integrations that authenticate with a BigQuery service account, or that use writeback or native transform, require an authenticated BigQuery service account. Once created, a single service account can be reused across multiple integrations. Begin in the BigQuery service account creation flow in Domo. Choose one of the following authentication methods.
Authentication method selection

Option 1: Use a BigQuery Service Account Key File

  1. Enter a name to identify the BigQuery service account in Domo. The name can be changed later.
    Tip: Use a clear, distinct name to differentiate between multiple service accounts and integrations.
  2. Upload the JSON key file you downloaded from the Google Cloud Console.
Key file upload form

Option 2: Use Workload Identity Federation (WIF)

  1. Enter a name to identify the BigQuery service account in Domo. The name can be changed later.
  2. Enter the Project ID of the project you want Domo to run queries in. Domo runs every query as a BigQuery job in this project, and BigQuery bills the job there, so the service account must hold the BigQuery Job User role on it. This is usually the project that contains your service account and your data. See Roles and Permissions.
  3. Upload the JSON configuration file you downloaded from the Google Cloud Console.
WIF configuration file upload form

Enable BigQuery Writeback

Writeback allows Domo to create and update tables in your BigQuery instance using the associated service account. Enable it when you want to use BigQuery as an output for Magic ETL DataFlows.
Note: If you only need to read BigQuery data, skip this section.
Even when writeback is enabled, access must be explicitly granted to individuals or groups. Basic access does not automatically include writeback privileges. You can manage access levels on the Accounts page by selecting Account Sharing next to the relevant BigQuery service account. If the integration uses U2M OAuth only, add a service account first, because writeback runs under the service account. On the integration’s Settings page, in the Service account section, select Set up service account, then select or create a BigQuery service account. See Create a BigQuery Account. To configure writeback, begin on the integration’s Settings page.
  1. Navigate to Data Warehouse > Connect Data > BigQuery, select Manage Integrations, then select the wrench icon next to your integration. The Settings page appears.
Integration Settings page
  1. In the Write section, select Set up write. The Configure Write Access dialog appears.
  2. Select the BigQuery project to use for writing data from Domo.
  3. Select the default dataset for data output.
Configure Write Access dialog
  1. Select the authorization checkbox to confirm that Domo is authorized to create, modify, and delete objects in BigQuery using the service account.
  2. Select Save & Enable Write. The Write section on the Settings page displays the configured project and dataset with a green checkmark.
Finalize Write Integration dialog
Settings page with writeback enabled

Enable Native Transform

Native transform is optional. Without it, Domo uses its own compute resources to read and write BigQuery data. When enabled for an integration, anyone who shares that integration can choose BigQuery compute for individual Magic ETL DataFlows. This is a per-pipeline selection, not a global setting.
Note: The project and dataset values for native transform are shared with the writeback configuration. Changing them in one place changes both.
If the integration uses U2M OAuth only, add a service account first (see Enable BigQuery Writeback). To configure native transform, begin on the integration’s Settings page (see Enable BigQuery Writeback for navigation steps).
  1. In the Native transform section, select Set up native transform. The Configure Native Transform dialog appears.
  2. Select the BigQuery project for native transform.
  3. Select the default BigQuery dataset.
Configure Native Transform dialog
  1. Select the authorization checkbox to confirm that Domo is authorized to create, alter, update, and delete objects in your BigQuery environment.
  2. Select Save & Enable Native Transform. The Native transform section on the Settings page displays the configured project and dataset with a green checkmark.
Finalize Native Transform dialog
Settings page with writeback and native transform enabled

Configure OAuth

When OAuth is enabled for a cloud integration, all DataSets connected through that integration use OAuth authentication. When you view a card or preview a DataSet built with an OAuth-enabled integration, Domo prompts you to enter your Google Cloud Platform (GCP) credentials. Domo then queries BigQuery data in the context of your account, rather than the BigQuery service account.
Note: Currently, Domo enforces OAuth for reading data from BigQuery. This applies to individuals viewing connected DataSets and derived assets such as cards and dashboards. OAuth does not apply to Magic ETL, writeback, or native transforms. These operations use the BigQuery service account instead of an individual GCP account. An OAuth-only integration is read-only until you add a service account.
You can use OAuth in two ways:
  • OAuth only — Select U2M OAuth when you create the integration. The integration is read-only and has no service account.
  • OAuth with a service account — Add OAuth to an integration that already uses a service account. OAuth is optional here: without it, Domo still reads data, uses BigQuery compute, and writes data back to BigQuery (if writeback is enabled) through the service account.
If you’re creating an integration with U2M OAuth, select Add OAuth Config… under Select BigQuery OAuth Configuration, then follow steps 3–5. To configure OAuth, begin on the integration’s Settings page (see Enable BigQuery Writeback for navigation steps).
  1. In the OAuth section, select Set up OAuth. The Configure OAuth Settings dialog appears.
  2. Select an existing configuration from the BigQuery OAuth Configuration dropdown, or select Add OAuth Config… to create a new one.
    Configure OAuth Settings — select configuration
  3. (Conditional) For new configurations only, enter an OAuth Configuration Name and the Default billing project ID. This is the GCP project whose billing account will be charged for query usage.
    Note: Enter the Project ID exactly as it appears in GCP, including case sensitivity.
    Configure OAuth Settings — add new configuration
  4. Select Connect. A Google sign-in window appears.
    Google sign-in
  5. Select your GCP account and sign in.
  6. Select Save to apply the OAuth configuration.

Review Query Metadata

Domo provides additional metadata fields for queries executed through BigQuery integrations. These fields help you track and audit query context. They are visible in BigQuery’s job history under the job labels. The following metadata fields are available:

Connect Tables to DataSets

After setting up your BigQuery integration, you can connect BigQuery tables to Domo DataSets using the Connect Tables section in the integration overview. Learn more about connecting tables to Domo.

FAQ

No, spaces are not allowed in table names.
Yes. When you create the integration, select U2M OAuth as the authentication method. Each user signs in with their own Google account, and no service account is needed. An OAuth-only integration has these limits:
  • It’s read-only.
  • Data freshness checks and caching aren’t available.
  • Magic ETL can’t currently use its DataSets.
Adding a service account enables writeback, native transform, and data freshness. See Enable BigQuery Writeback.

Troubleshoot

Resolve a Job Creation Permission Error

When you create the integration, Domo returns this error if the service account cannot create jobs in the project you entered as the Project ID:
Grant the service account the BigQuery Job User role on that project, then create the integration again. See Roles and Permissions. Two things to check if you already granted the role:
  • Confirm you granted it on the right project. BigQuery checks this permission in the project that runs the query, which is the project you enter as the Project ID—not a project that only stores the data.
  • Confirm the role is on the service account Domo uses. If you authenticate with Workload Identity Federation, Domo impersonates the service account named in your JSON configuration file, and that service account needs the role.
If your security policy does not allow the service account to hold job-creation rights permanently, you can grant BigQuery Job User, create the integration, and then revoke the role. The integration continues to read data, but automated data freshness checks stop working, because those also run queries.

Resolve an Authentication Error When Using WIF

If you authenticate with Workload Identity Federation, these errors mean Domo could not obtain a token to act as your service account:
Check these in order:
  • The provider matches the values Domo Support provided. With an OIDC provider, the first two errors above usually mean the JSON configuration was exported with a different audience—Domo can only request tokens for an audience it owns. With an AWS provider, confirm the provider uses the account ID from the role ARN Domo Support provided, and that the member uses the role name from that ARN. See Set Up Workload Identity Federation.
  • Workload Identity User is granted on the service account. Error requesting access token, reported by Google as iam.serviceAccounts.getAccessToken denied, means the workload identity pool principal cannot impersonate the service account. Grant Workload Identity User or Service Account Token Creator on the service account, with the pool principal as the member.
  • Use the Google Cloud troubleshooter. Google includes an IAM Policy Troubleshooter link in the denial, which shows which principal was denied and which binding is missing. Ask Domo Support for the link from your failed attempt if you cannot find it in your own audit logs.

Resolve a Magic ETL Error When Using WIF

If you authenticate with Workload Identity Federation, a Magic ETL DataFlow that reads a BigQuery DataSet can fail with this error even though the integration itself connects and the input export completes:
Domo Support sees the underlying cause as:
After BigQuery exports the input to Google Cloud Storage, Domo signs a download link for each exported file. With WIF, Google signs those links on behalf of the service account, so the service account needs permission to sign as itself. Grant Service Account Token Creator on the service account, with the same service account as the member:
If your security policy requires a narrower grant, a custom role with only iam.serviceAccounts.signBlob on the service account is enough. Two more things to check:
  • VPC Service Controls. If your project is inside a service perimeter, allow the IAM Service Account Credentials API (iamcredentials.googleapis.com) as well as access to the Domo staging bucket. Otherwise the signing requests fail with a perimeter error instead of a permission error.
  • Re-enable the DataFlow. After repeated failures, Domo disables the DataFlow automatically. Re-enable it after you grant the role, then run it again.
Last modified on November 6, 2026