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

# Google BigQuery

![images/bigquery.svg](https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/bigquery.svg?fit=max\&auto=format\&n=EU2WCxuXGIUQcziR\&q=85\&s=943e8a653f72406cba45c00341808850)

Automate your healthcare workflows with Google BigQuery integrations and Morf. BigQuery is a cloud-based data warehouse for analyzing and querying large datasets. Save event data from a Morf workflow to a BigQuery table.

# Getting started

## Grant Morf access to BigQuery

1. Create a new dataset. This recommended approach to dataset management ensures Morf only has access to the necessary tables. Follow Google's instructions on [creating a new dataset](https://cloud.google.com/bigquery/docs/datasets).
2. Share your dataset with Morf. Follow Google's instructions on [granting access to a dataset](https://cloud.google.com/bigquery/docs/control-access-to-resources-iam#grant_access_to_a_dataset).
   * Role: BigQuery Data Editor (`roles/bigquery.dataEditor`)
   * Email: `primary-workload-sa@morf-prod-5f7d.iam.gserviceaccount.com`

> [!WARNING]
>
> This role should be granted at the dataset level so Morf doesn't have unneccessary access to other data.

Use Morf's [Save to BigQuery action](https://docs.morf.health/docs/actions/google/v1/save_to_bigquery.md) to store event data directly in BigQuery from a workflow.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.