Before ingesting Google BigQuery metadata into Dawiso, prepare your account for authentication by configuring a Google BigQuery service account and granting it the necessary permissions.

Dawiso queries INFORMATION_SCHEMA views to get metadata for your assets. It runs these queries as BigQuery jobs in the project set in the connection’s Project ID field. For the connection settings, see Create Google BigQuery connection.

What the service account needs

The table lists every permission and role the Dawiso service account needs, by feature. The sections below the table give the steps.

FeatureWhen it appliesRole or permissionsIn which projects
Metadata, including descriptions, labels, and policy tagsAlwaysDawiso Ingestion role, a custom role with the permissions listed in Create service roleEvery project you scan. Grant it on the project, not only on datasets
Scan queriesAlwaysbigquery.jobs.create, part of the Dawiso Ingestion roleThe project in the connection’s Project ID field
Project selection by patternregex: entries in Projects or Dataform projectsNo extra permissionEvery project a pattern must find: the service account needs a role on the project itself, and the BigQuery API must be enabled there
LineageScan lineage is onData Lineage API enabled, and Data Lineage Viewer (roles/datalineage.viewer)Every project you scan, and every compute project
Dataform modelsScan lineage is on, and you build tables with DataformDataform Viewer (roles/dataform.viewer)Every project that holds Dataform repositories: the connection’s project, the projects you scan, and the projects in Dataform projects
BigQuery ML modelsscanBqmlModels is truebigquery.models.list, added to the Dawiso Ingestion roleEvery project you scan
Storage statistics, materialized views and external tablesscanStorageStats or scanMaterializedViewsExternal is trueNothing beyond the Dawiso Ingestion roleEvery project you scan
  • Projects you scan: The project in the connection’s Project ID field or, when the data source lists Projects, those projects. They also include the project of every project.dataset entry in Datasets, even when Projects doesn’t list it. See Create Google BigQuery data source.
  • Compute project: A project in which your own BigQuery jobs run, for example the project your scheduled queries or transformation jobs run in. Google stores lineage in the project that ran the job, so the lineage of a table you scan can sit in a project you don’t scan.

A missing role for lineage, Dataform, or ML models costs you no objects. Dawiso ingests the objects as usual, leaves out what it could not read, and writes a warning to the ingestion log that names the role to grant. If the scan runs on the Dawiso Integration Runtime, look for these warnings in the runtime’s log: after a successful run, the runtime doesn’t pass them on to the ingestion log in Dawiso.

Tip

The warnings name Google’s predefined roles. BigQuery Metadata Viewer (roles/bigquery.metadataViewer) contains the dataset, table, and routine permissions of the Dawiso Ingestion role, and bigquery.models.list. BigQuery Job User (roles/bigquery.jobUser) contains bigquery.jobs.create.

Network access from your own infrastructure

This applies when the scan runs on the Dawiso Integration Runtime and that machine reaches Google APIs through Private Google Access or a Private Service Connect endpoint. Each Google API has its own host name, and each host name must resolve to your endpoint:

  • oauth2.googleapis.com: Always. The service account signs in here.
  • bigquery.googleapis.com: Always.
  • datalineage.googleapis.com: When Scan lineage is on. If the host can’t be reached, the objects load, but no lineage does.
  • dataform.googleapis.com: When Scan lineage is on, whether or not you use Dataform. If the host can’t be reached, the objects and the lineage load, but no Dataform models do.

For lineage and Dataform, the ingestion still finishes and writes a warning. An Integration Runtime older than 2026.4.29 is the exception: on it, an unreachable dataform.googleapis.com fails the ingestion.

If the runtime machine also uses an HTTP proxy, the Google API calls must bypass it. A proxied call doesn’t use your private DNS: the proxy resolves the host name itself, so the call can reach Google’s public endpoint, which VPC Service Controls may refuse. Add .googleapis.com to NO_PROXY for the account that runs the runtime, for example NO_PROXY=localhost,.googleapis.com. Write the entry with a leading dot: the runtime matches NO_PROXY against the host name only, so *.googleapis.com and IP ranges such as 10.0.0.0/8 have no effect.

Connection configuration

In this guide, you will:

  • Create a custom role with the permissions from the table above
  • Create a dedicated service account and grant it the role
  • Grant the role in every other project you scan
  • Generate a service account key in JSON
  • [Optional] Enable the Data Lineage API and grant the Data Lineage Viewer role
  • [Optional] Grant the Dataform Viewer role

This guide assumes you are using the Google Cloud console, but all steps can also be carried out in the Google Cloud CLI.

Create service role

First, create a new Identity and Access Management (IAM) role.

  1. In your Google Cloud console, open the left-side menu, hover over IAM and admin, and click Roles. In the drop-down list at the top of the page, select the project. If you scan several projects, select your organization instead (see the tip below).
  2. In the top panel, click + CREATE ROLE. On the next page, fill in the following fields:
    1. Title: Name the role, e.g., Dawiso Ingestion role.
    2. [Optional] Description: Add a description to help identify the role and its purpose.
    3. ID: Unique ID of the role.
    4. [Optional] Role launch stage: Select a role launch stage. Available options are: Alpha, Beta, or General Availability.
  3. On the same page, click + ADD PERMISSIONS, select all the following permissions, and click Add:
    •   bigquery.datasets.get
        bigquery.datasets.getIamPolicy
        bigquery.jobs.create
        bigquery.readsessions.create
        bigquery.readsessions.getData
        bigquery.readsessions.update
        bigquery.routines.get
        bigquery.routines.list
        bigquery.tables.get
        bigquery.tables.getIamPolicy
        bigquery.tables.list
        resourcemanager.projects.get
        resourcemanager.projects.getIamPolicy
    • If you scan BigQuery ML models (scanBqmlModels), also add bigquery.models.list.
  4. Finally, finish the role setup by clicking Create.
Tip

You can grant a custom role only in the project or organization where you created it. To scan several projects, create the role once at the organization level, or create it in each project you scan.

Create service account

Next, create a Service Account to grant Dawiso access to your project. Please follow this guide.

  1. In your Google Cloud console, open the left-side menu, hover over IAM and admin, and click Service Accounts. Make sure you’ve selected the correct project.
  2. In the top panel, click + CREATE SERVICE ACCOUNT. On the next page, fill in the following fields:
    1. Service account name: Name the service account, e.g., Dawiso service account.
    2. Service account ID: Unique ID of the service account. The ID will be auto-generated, however, you can change it if needed.
    3. [Optional] Service account description: Add a description to help identify the role and its purpose.
  3. Click CREATE AND CONTINUE.
  4. In the Grant this service account access to project section, select the newly created service role (in this case, Dawiso Ingestion role).
  5. Click Continue.
  6. Finish the service account setup by clicking DONE.

This grants the role in the project you selected. Grant it in every other project the table names, as described in the next section.

Grant the role in other projects

Grant the Dawiso Ingestion role in every other project you scan, and in the connection’s project if the service account was created in a different one.

  1. In your Google Cloud console, select the project, open the left-side menu, hover over IAM and admin, and click IAM.
  2. If the service account created for Dawiso is listed, click Edit principal in its row, then click Add another role. Otherwise, click Grant access and enter the email address of the service account.
  3. Select the Dawiso Ingestion role.
  4. Click Save.

Using the Google Cloud CLI, for a role created in a project:

gcloud projects add-iam-policy-binding <PROJECT_ID> \
    --member="serviceAccount:<SERVICE_ACCOUNT_EMAIL>" \
    --role="projects/<ROLE_PROJECT_ID>/roles/<ROLE_ID>"

For a role created at the organization level, use --role="organizations/<ORGANIZATION_ID>/roles/<ROLE_ID>".

Generate a key for the service account

Finally, you will need to generate a JSON Service Account Key that allows access to your cloud resources to create a new Connection in Dawiso.

  1. In your Google Cloud console, open the left-side menu, hover over IAM and admin, and click Service Accounts. Make sure you’ve selected the correct project.
  2. Click the three dots icon next to the service account created for Dawiso and select Manage keys.
  3. Click ADD KEY above the list of your keys.
  4. Click Create new key and select the JSON key type.
  5. Continue with Create. Your JSON service account key will be automatically downloaded to your device.
Warning

Make sure to store the key in a safe place for later as it cannot be downloaded more than once.

Data lineage requirements

Dawiso reads table-level and column-level lineage for Google BigQuery from Google’s Data Lineage API, which records how BigQuery jobs move data. To ingest lineage, enable that API and grant the Data Lineage Viewer role in the projects that the lineage row of the table names: every project you scan, and every compute project.

The compute projects need both because Google records lineage only in projects where the Data Lineage API is enabled, and stores it in the project that ran the job. Dawiso reads lineage stored in a project only when the service account holds the role there.

Enable the Data Lineage API

  1. In your Google Cloud console, go to APIs & Services > Enable APIs and services. Make sure you’ve selected the correct project.
  2. Search for Data Lineage API.
  3. Click Enable.

Using the Google Cloud CLI:

gcloud services enable datalineage.googleapis.com --project <PROJECT_ID>

To verify that the API is enabled:

gcloud services list --enabled --project <PROJECT_ID> | grep datalineage

BigQuery now reports lineage for its jobs automatically. There is nothing to configure per dataset or per table.

Warning

Lineage is not backfilled. Only jobs that run after you enable the API produce lineage, so a project enabled this morning shows no lineage for work done last week. Google publishes lineage within 24 hours of a job finishing, so re-scan the day after your regular loads have run rather than straight after enablement.

Grant the Data Lineage Viewer role

The service account needs the Data Lineage Viewer role (roles/datalineage.viewer) in every project you scan and every compute project. The role is read-only and grants no access to the data itself.

  1. In your Google Cloud console, open the left-side menu, hover over IAM and admin, and click IAM. Make sure you’ve selected the correct project.
  2. If the service account created for Dawiso is listed, click Edit principal in its row, then click Add another role. Otherwise, click Grant access and enter the email address of the service account.
  3. Select Data Lineage Viewer.
  4. Click Save.

Using the Google Cloud CLI:

gcloud projects add-iam-policy-binding <PROJECT_ID> \
    --member="serviceAccount:<SERVICE_ACCOUNT_EMAIL>" \
    --role="roles/datalineage.viewer"

Repeat the API enablement and this role grant for every project you scan and every compute project.

A missing API or a missing role costs you no objects. Dawiso ingests every scanned object as usual, records no lineage, and writes a warning describing what to fix in Google Cloud.

If no lineage appears

Check the following, in this order:

  • The Data Lineage API is enabled on that specific project.
  • The service account holds roles/datalineage.viewer on that same project.
  • The compute project that runs the BigQuery jobs has both the API and the role, even when it isn’t a project you scan.
  • BigQuery jobs have run since the API was enabled on that project.
  • At least 24 hours have passed since those jobs finished.
  • A job wrote to the table within the last 30 days. Google keeps lineage for 30 days.
  • The dataset sits in the region the data source is configured with.
  • Scan lineage is enabled on the data source. See Create Google BigQuery data source.
  • The machine that runs the scan can reach datalineage.googleapis.com. See Network access from your own infrastructure.
Tip

Open the table in the BigQuery console and check its Lineage tab. The console reads the same API that Dawiso does, so an empty graph there means the lineage does not exist in Google Cloud yet.

Dataform requirements

With Scan lineage on, Dawiso also reads your Dataform repositories and loads their table, view, and incremental-table actions, and the operations that create a table (hasOutput: true), as Dataform models. This needs the Dataform Viewer role (roles/dataform.viewer) in every project that holds Dataform repositories. Dawiso looks for repositories in:

  • The project in the connection’s Project ID field.
  • Every project you scan.
  • Every project in the data source’s Dataform projects field.

In each of these projects, Dawiso reads the repositories in the data source’s region, or in the locations listed in its Dataform locations field. See Create Google BigQuery data source.

A project without Dataform, or without the role, costs you no objects and no lineage. Dawiso leaves out that project’s Dataform models and writes a warning. If you don’t use Dataform in that project, ignore the warning.

Grant the Dataform Viewer role

The service account needs the Dataform Viewer role (roles/dataform.viewer) in every project that holds Dataform repositories. The role is read-only.

  1. In your Google Cloud console, select the project that holds the repositories, open the left-side menu, hover over IAM and admin, and click IAM.
  2. If the service account created for Dawiso is listed, click Edit principal in its row, then click Add another role. Otherwise, click Grant access and enter the email address of the service account.
  3. Select Dataform Viewer.
  4. Click Save.

Using the Google Cloud CLI:

gcloud projects add-iam-policy-binding <PROJECT_ID> \
    --member="serviceAccount:<SERVICE_ACCOUNT_EMAIL>" \
    --role="roles/dataform.viewer"

Repeat the role grant for every project that holds Dataform repositories.

Warning

Grant Dataform Viewer, not Code Viewer (roles/dataform.codeViewer). Code Viewer lacks the dataform.releaseConfigs.list and dataform.workflowConfigs.list permissions that Dawiso uses to find the released version of your Dataform code.

If no Dataform models appear

Check the following:

  • Scan lineage is enabled on the data source. Dawiso reads Dataform only together with lineage.
  • The repository sits in the connection’s project, in a project you scan, or in a project listed in Dataform projects.
  • The service account holds Dataform Viewer in the project that holds the repository.
  • The repository sits in the data source’s region, or its location is listed in Dataform locations. Repositories in other locations aren’t found.
  • The repository has a release configuration, or at least one compilation from its Git branch without errors. Compilations from development workspaces aren’t used.
  • The repository defines its tables as table, view, or incremental-table actions, or as operations with hasOutput: true.
  • For a project listed only in Dataform projects: the table the model builds sits in a dataset this data source scans.
  • The machine that runs the scan can reach dataform.googleapis.com. See Network access from your own infrastructure.

Each ingestion writes a Dataform summary line to its log, with the number of repositories found per location and the number of models loaded.