BigQuery
Connect BigQuery to Querio.
1. Create a service account
What: Create a service account so Querio can securely access BigQuery.
How:
- Go to Google Cloud Console > IAM & Admin > Service Accounts
- Click Create service account
- Name it something clear, like
querio-data-access - Add a description if helpful
- Click Create and continue
2. Assign required roles
What: Give the service account permission to run jobs and read the datasets Querio should query.
How:
- Add the BigQuery Job User role
- Add BigQuery Data Viewer at the project level or only on the specific datasets Querio should access
- Ensure the service account has the
bigquery.readsessions.createpermission (you can grant the BigQuery Read Session User role for this)
If you do not want Querio to access every dataset in the project, only grant BigQuery Data Viewer on the specific datasets. The BigQuery Job User and BigQuery Read Session User roles are still needed at the project level.
3. Create a JSON key
What: Generate the key file Querio uses to authenticate.
How:
- Open the service account
- Go to Keys
- Click Add key > Create new key
- Choose JSON
- Download the file and store it securely
4. Share the key securely
Share the JSON key with Querio using a secure transfer method.
5. Optional: grant dataset-specific access
If you are scoping access by dataset:
- Open BigQuery in Google Cloud Console
- Open the dataset Querio should access
- Go to Sharing > Permissions
- Add the service account email
- Grant BigQuery Data Viewer
Make sure to grant access on the dataset, not on individual tables. Table-level permissions won't expose INFORMATION_SCHEMA and Querio won't be able to discover your schema.