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.
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
- 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.- 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.
-
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.arntogoogle.subject, and addattribute.aws_rolemapped toassertion.arn.extract('assumed-role/{role_name}/'). This is the mapping Google recommends for an AWS workload that runs with a role, and theaws_roleattribute 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.subtogoogle.subject.
- AWS: map
-
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, whereROLE_NAMEis the part of the role ARN afterrole/. - OIDC: the workload identity pool principal.
- AWS:
- 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.
Example: Set Up an AWS Provider From a Role ARN
Suppose Domo Support sends you this role ARN:123456789012, and the role name is example-ice. Then:
-
When you add the AWS provider to your Workload Identity Pool, enter
123456789012as the AWS account ID. -
Set the attribute mapping:
-
On your BigQuery service account, grant Workload Identity User to this member, replacing
PROJECT_NUMBERwith the numeric project number of the project that holds the pool, andPOOL_IDwith the pool’s ID: -
Generate the JSON configuration file with IMDSv2 enabled. With the gcloud CLI, include
--enable-imdsv2, replacingPROVIDER_IDwith the provider’s ID andSERVICE_ACCOUNT_EMAILwith your BigQuery service account:If you download the file from the Google Cloud console instead, confirm that itscredential_sourcesection 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.
- Roles:
- BigQuery Job User
- Service Account Token Creator (only if using WIF)
- Additional permissions:
bigquery.datasets.createbigquery.datasets.deletebigquery.datasets.getbigquery.tables.createbigquery.tables.deletebigquery.tables.getbigquery.tables.getDatabigquery.tables.listbigquery.tables.updatebigquery.tables.updateDataresourcemanager.projects.getbigquery.jobs.createbigquery.jobs.getbigquery.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.
Open the Domo on BigQuery Page
- In the navigation header, select Data Warehouse.
- Select Connect Data > BigQuery. The Domo on BigQuery page appears.

- 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.

- 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).- 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.
- (Optional) Enter a short description to help others understand the purpose of this integration. This description is visible only in the integration details.
- From Authentication method, select BigQuery Service Account or U2M OAuth.
- (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.

- (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.

- Select your BigQuery region.
- Select Create Integration. A confirmation screen appears when the integration is created successfully.
- Select Proceed to Integration Overview. The integration opens.

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.
Option 1: Use a BigQuery Service Account Key File
- Enter a name to identify the BigQuery service account in Domo. The name can be changed later.
- Upload the JSON key file you downloaded from the Google Cloud Console.

Option 2: Use Workload Identity Federation (WIF)
- Enter a name to identify the BigQuery service account in Domo. The name can be changed later.
- 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.
- Upload the JSON configuration file you downloaded from the Google Cloud Console.

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.
- Navigate to Data Warehouse > Connect Data > BigQuery, select Manage Integrations, then select the wrench icon next to your integration. The Settings page appears.

- In the Write section, select Set up write. The Configure Write Access dialog appears.
- Select the BigQuery project to use for writing data from Domo.
- Select the default dataset for data output.

- Select the authorization checkbox to confirm that Domo is authorized to create, modify, and delete objects in BigQuery using the service account.
- Select Save & Enable Write. The Write section on the Settings page displays the configured project and dataset with a green checkmark.


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.
- In the Native transform section, select Set up native transform. The Configure Native Transform dialog appears.
- Select the BigQuery project for native transform.
- Select the default BigQuery dataset.

- Select the authorization checkbox to confirm that Domo is authorized to create, alter, update, and delete objects in your BigQuery environment.
- Select Save & Enable Native Transform. The Native transform section on the Settings page displays the configured project and dataset with a green checkmark.


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.
- 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.
- In the OAuth section, select Set up OAuth. The Configure OAuth Settings dialog appears.
-
Select an existing configuration from the BigQuery OAuth Configuration dropdown, or select Add OAuth Config… to create a new one.

-
(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.

-
Select Connect.
A Google sign-in window appears.

- Select your GCP account and sign in.
- 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
Can I use spaces in table names?
Can I use spaces in table names?
No, spaces are not allowed in table names.
Can I create a BigQuery integration that uses only OAuth?
Can I create a BigQuery integration that uses only OAuth?
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.
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:- 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.
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:- 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 asiam.serviceAccounts.getAccessTokendenied, 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: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.

