Setup
Connection Options
ClarityQ offers two ways to connect to BigQuery:- Using ClarityQ service account
- Using your own service account
Option 1: Using ClarityQ Service Account
For quick setup and testing, you can grant access to ClarityQ’s managed service account instead of creating your own.Step 1: Grant access to ClarityQ service account
- Go to Google Cloud Console
- Navigate to IAM & Admin → IAM
- Click Grant Access
- Add the ClarityQ service account email (this will be displayed in the ClarityQ UI):
Note: The exact email address will be shown in the ClarityQ connection interface.
- Assign the appropriate BigQuery roles:
- BigQuery Job User
- BigQuery Data Viewer
- BigQuery Metadata Viewer
- BigQuery Resource Viewer
- Service Usage Consumer
Step 2: Configure connection in ClarityQ
In the ClarityQ interface, fill out the connection form: Basic Fields:- Connection Name: Choose a name for this connection (e.g., “BigQuery via ClarityQ SA”)
- Project ID: Your Google Cloud project ID
To connect Google BigQuery, please grant access to ClarityQ service account:Click “Generate ClarityQ Service Account” to get the email address, then copy the exact service account email shown (each connection has a unique identifier).
Option 2: Using Your Own Service Account
Step 1: Create a service account
- Go to Google Cloud Console
- Navigate to IAM & Admin → Service Accounts
- Click Create Service Account
- Enter a descriptive name (e.g.,
clarityq-service-account) - Add a description for future reference
- Click Create and Continue
Step 2: Assign permissions
Assign the appropriate BigQuery roles to your service account:- In the role assignment step, assign these roles:
- BigQuery Job User
- BigQuery Data Viewer
- BigQuery Metadata Viewer
- BigQuery Resource Viewer
- Service Usage Consumer
- Click Continue then Done
Step 3: Generate service account key
- Select your service account from the list
- Go to the Keys tab
- Click Add Key → Create New Key
- Choose JSON format
- Click Create
- Save the downloaded JSON file securely
Step 4: Configure connection in ClarityQ
In the ClarityQ interface, fill out the connection form: Basic Fields:- Connection Name: Choose a name for this connection (e.g., “Production BigQuery”)
- Project ID: Your Google Cloud project ID
- Service Account Key: Upload your JSON service account key file (drag & drop or browse)
- Quota Project ID: Project ID to use for billing (if different from main project)
Service account key structure
Theservice_account_key must contain: