Google - Manual Connection
How to connect your Google Workspace with Coworker.
Prerequisites
An account with admin permissions over your Google Workspace
Google Workspace Business or Enterprise
Google Admin Console
Generating the credentials
For this integration, you will be creating a service account with limited permissions, able to make read-only queries as a Google Workspace admin on limited scopes.
Coworker supports two integrations: one for Workspace admin (eg. meet activity), and one for Google Drive activity (docs/sheets/presentations/etc.). Depending on whether you want both or only one of these integrations, the scopes differ slightly.
In your Google cloud console, go to the IAM & Admin console. Make sure that you selected the right project. If you don't have any existing GCP project, you may have to create one. Go to the Service Accounts page https://console.cloud.google.com/iam-admin/serviceaccounts
Create a new service account.
For the "Grant this service account access to the project" step, continue without adding any role: no need to give this account any specific role over your GCP project.
For the final "Grant users access to this service account", leave blank. No need to explicitly grant users access to this service account. Click on Done to create the account
In the service account list, click on the account you just created to open its details (https://console.cloud.google.com/iam-admin/serviceaccounts/details/{service-acc-id}) Open the Advanced settings section.
Note the "Unique ID" that was created for this service account, it will be necessary for the next step.
Click on "View Google Workspace Admin console", or go to https://admin.google.com/ Go to Security > Access and data control > API controls. Or, alternatively: https://admin.google.com/ac/owl/domainwidedelegation
Click on "Add new API client"
Fill in the necessary info:
The Client ID should be the "Unique ID" from the service account that you got from step 5
The following OAuth scopes are required. You may copy paste this directly in the form: [RECOMMENDED] If you want both Drive logs and Meet reports: https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.group.member.readonly, https://www.googleapis.com/auth/admin.reports.audit.readonly, https://www.googleapis.com/auth/admin.reports.usage.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/drive.activity.readonly, https://www.googleapis.com/auth/documents.readonly, https://www.googleapis.com/auth/spreadsheets.readonly
Click Authorize once you're done
The domain-wide delegation should appear in the list
Go back to the previous IAM page for your service account (see step 5), go to the keys tab: https://console.cloud.google.com/iam-admin/serviceaccounts/details/{service-acc-id}/keys
Create a new key
Select Key Type: JSON and create.
This will trigger a download of a JSON credentials file, which contains everything necessary for the Coworker integration.
Enable the following APIs by clicking on the links below and then clicking "Enable" (see screenshot
List of final information to be shared with Coworker for final connection:
credentials_json
: The credentials file for the service account created aboveemail
: The email of the user, who has permissions to access the Google Workspace Admin APIs (likely the email of the user who created the key above). Note that this is not the email of the service account behind the credentials json.domain_name
: Domain name for your workspace, eg. mycompany.com. This will be used for Directory API streams
Last updated
Was this helpful?