

Options are:Ī BigQuery dataset is similar to a schema. You can specify which BigQuery datasets you want to sync and scan.
BIGQUERY JSON EXTRACT DOWNLOAD
If you need to add additional roles, you have to create another service account, download the JSON file, and upload the file to Metabase. The JSON file contains the credentials your Metabase application will need to access BigQuery datasets, as defined by the roles you added to the service account. For example, if your ID is project_name:project_id, only enter project_id. When entering the Project ID, omit the Project ID prefix. If you’re not sure where to find the Project ID, see Google’s documentation on getting information on datasets. You can find this ID via the Google Cloud Console.

Project IDĮach BigQuery dataset will have a Project ID. The display name for the database in the Metabase interface. If you delete the key, you’ll need to create another service account with the same roles. The JSON file will download to your computer. Once you have assigned roles to the service account, click on the Create Key button, and select JSON for the key type. BigQuery Job User (distinct from BigQuery User)įor more information on roles in BigQuery, see Google Cloud Platform’s documentation.Make sure you add the following roles to the service account: You’ll need to add roles to the service account so that Metabase will have permission to view and run queries against your dataset. Grant the service account access to this project. Name the service account, and add a description (the service account ID will populate once you add a name). At the top of the screen, click on + CREATE SERVICE ACCOUNT.įill out the service account details. The console will list existing service accounts, if any. From your Google Cloud Platform project console, open the main sidebar menu on the left, go to the IAM & Admin section, and select Service account. Here’s the basic flow:Ĭreate service account. To create the service account JSON file, follow Google’s documentation on setting up a service account for your BigQuery dataset. Service accounts are intended for non-human users (such as applications like Metabase) to authenticate (who am I?) and authorize (what can I do?) their API calls. You’ll first need a service account JSON file that Metabase can use to access your BigQuery dataset. Google Cloud Platform: creating a service account and JSON file This project should have a BigQuery dataset for Metabase to connect to.
BIGQUERY JSON EXTRACT HOW TO
Consult the Google Cloud Platform documentation for how to create and manage a project. You’ll need to have a Google Cloud Platform account with a project you would like to use in Metabase. To add a database connection, click on the gear icon in the top right, and navigate to Admin settings > Databases > Add a database.
