Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): list the bigquery roles a source needs before setup (#116253)

Tom Owersa793d0310ace
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/bigquery/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/bigquery/source.py
index f2421d6fb77f..b8276e1b4328 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/bigquery/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/bigquery/source.py
@@ -506,7 +506,12 @@ class BigQuerySource(SQLSource[BigQuerySourceConfig]):
"Enter your BigQuery credentials to automatically pull your BigQuery data into the PostHog Data "
"warehouse. To send PostHog data to BigQuery instead, set up a batch export.\n\n"
"To use a service account, select **Choose Google Cloud service account connection**, then "
- "**Configure new Google Cloud service account**. It shows which access to grant PostHog in Google Cloud."
+ "**Configure new Google Cloud service account**. It shows how to let PostHog use your service account.\n\n"
+ "Your service account also needs these BigQuery roles: **BigQuery Job User** and **BigQuery Read "
+ "Session User** on the project, and **BigQuery Data Editor** on the dataset you sync. If you use a "
+ "separate dataset for temporary tables, grant **BigQuery Data Editor** there instead and **BigQuery "
+ "Data Viewer** on the dataset you sync. Without these roles, the connection check can pass but the "
+ "sync fails."
),
docsUrl="https://posthog.com/docs/cdp/sources/bigquery",
fields=cast(