BigQuery Connection Guide
This feature is currently available in a private preview and may not be accessible to all customers.
Service accounts are the only available authentication method
In this guide, you'll learn how Google permissions work for Coalesce, how to set permissions in Google Cloud IAM, and how to authenticate in Coalesce.
Permissions Overview
BigQuery requires permissions to be set on the project and the data set.
Project Level Permissions
Project permissions are roles assigned in Google Cloud IAM. These roles are inherited in data sets only when a service account is also granted permission to access that data set.
Dataset Level Permissions
Dataset permissions control what the service account or principal can do with specific data sets. A hierarchy for common roles is Data Viewer < Data Editor < Data Owner.
| Role | Capabilities |
|---|---|
| Data Viewer | Can test a connection and view storage mappings, but can't add sources or build. This role isn't recommended. |
| Data Editor | Can do all things within your data transformation app. This role is recommended. |
| Data Owner | Can do all things within your data transformation app and gains extra permissions within BigQuery. |
Minimum Required Permissions
The minimum combination to use Coalesce with BigQuery:
| Level | Role |
|---|---|
| Project | BigQuery User |
| Dataset | BigQuery Data Editor |
Set Up Project Level Permissions
-
Make sure you're in the project you want to add the service account to.
-
Go to IAM & Admin > Service Accounts in Google Cloud.
-
Click Create service account.
-
Fill out the required Service account ID and any other information required by your company's policy. Click Create and Continue.
-
Search for the role BigQuery User. Click Continue.
-
You can skip Principals with access. Click Done. Move on to setting data set level permissions.
Set Up Dataset Level Permissions
-
Go to BigQuery Studio.
-
In the Explorer, find the data set you want to add to Coalesce.
-
In the data set, click Share > Manage Permissions.
-
Click Add principal.
-
Search for your service account name. It should look similar to
name@projectname.iam.gserviceaccount.com. -
Then assign roles as BigQuery Data Editor.
Authenticate in Coalesce
-
Go to IAM & Admin > Service Accounts in Google Cloud.
-
Click on the service account created for Coalesce.
-
Click Keys.
-
Then Add key > Create new key.
-
Download the JSON file.
-
In the Create Workspace step or in Workspace settings, upload the JSON file from Google Cloud IAM. Then click Test Connection.
You've authenticated BigQuery in Coalesce. Add some data to get started.
Make sure the permissions are set on the project and data set.