Google Workspace
To connect Google Workspace to vScope, you’ll need a super admin account in Google Workspace. This guide walks you through setting up a Google Cloud project with the permissions needed to allow vScope to inventory your Google Workspace directory.
Once connected, vScope can inventory user accounts, groups, and devices from Google Workspace.
Set up a project and service account on Google Cloud Platform
-
Log in to Google Cloud Console with your super admin account. Select Resource and click New Project.
-
Name your project (e.g.,
vScope
), choose Organization and Location, then click Create. -
Go to API & Services > Credentials and Add a Service Account by clicking + Create Credentials > Service account.
-
Complete service account details by entering a name and clicking Create and continue.
-
Grant permissions by selecting Owner as the role, then click Continue.
-
Generate a key: Under the Keys tab, click Add Key > Create new key, select JSON format, and click Create. Save this file securely.
Configure OAuth and consent screen
-
Go back to Credentials in the Google Cloud Console and click Configure Consent Screen.
-
Select Internal and click Create. Enter your App name, User support email, and Developer contact information, then click Save and continue.
Enable domain-wide delegation and add API scopes
-
In your Google Admin console, go to API Controls (Show More > Security > Access and data control > API controls), then click Manage Domain-Wide Delegation.
-
Click Add new and enter the client_id from the key file into “Client ID”. Add the following API scopes (separated by commas) under “One or More API Scopes” and click Authorize:
Enable API permissions on Google Cloud
-
Go to APIs & Services > Library in Google Cloud Console and search for Admin SDK.
-
Click on Admin SDK and enable it by clicking Enable.
Common Errors
Error | What happened? | Suggested action |
---|---|---|
Error getting access token for service account: 401 Unauthorized | Generated when the API permissions are insufficient. | Ensure that the correct API scopes are set up for vScope in Google Workplace. |