Connecting Google Workspace with AssetLoom
Learn how to connect Google Workspace with AssetLoom, create a Google service account, authorize directory access, and set up user synchronization.
Connecting Google Workspace with AssetLoom allows you to sync your organization’s user directory into AssetLoom’s People Directory, helping you maintain employee information without manually creating each record.
To establish the connection, you’ll need to create a Google service account, authorize it to access your Google Workspace directory, and then provide the credentials in AssetLoom.
Before setting up the integration, make sure you have access to the following:
- Google Cloud project: You need permission to create a service account, enable APIs, and generate a JSON key in a Google Cloud project.
- Google Workspace Super Admin account: Required to authorize domain-wide delegation, which allows the service account to access your organization’s user directory.
- Google Workspace Admin account: A valid, licensed Workspace administrator account with permission to read users. You can use a Super Admin or an admin account with User → Read permission.
- AssetLoom Admin access: Required to set up and manage the Google Workspace integration in AssetLoom.
Note: You don’t need to hold all these permissions yourself. Different administrators can help complete the setup in each system.
Step 1. Create a Google Service Account
First, you’ll need to create a service account in Google Cloud Console. AssetLoom uses this account to authenticate with Google Workspace and retrieve directory information.
1.1. Enable the Admin SDK API
The Admin SDK API allows AssetLoom to read user information from your Google Workspace directory. To enable the Admin SDK API:
- Go to Google Cloud Console and sign in with your Google account.
- From the project selector at the top, create or select the Google Cloud project you want to use for this integration.

- From the navigation menu, go to APIs & Services > Library to access the API Library.

- In the API Library, search for the Admin SDK API.

- Click to open the API details, and click Enable this API.
1.2. Create a Service Account
Next, create a service account that AssetLoom will use to connect to Google Workspace.
- From the Google Cloud Console navigation menu, locate IAM & Admin > Service Accounts.

- Click Create Service Account.

- In the Create service account screen, enter a service account name and description (e.g.,
assetloom-workspace-sync), then click Create and Continue.

- You’ll be taken to the next steps to configure permissions and access. You don’t need to assign any project roles to the service account or grant users or groups access to it. Leave these settings blank, click Continue, and then Done.
Your new service account will appear in the Service Accounts list.
1.3. Generate a JSON Key
Once the service account is created, you’ll need to generate a JSON key to authenticate the connection in AssetLoom.
- From the Service Accounts list, click the service account you just created and navigate to the Keys tab.
- Click Add Key > Create New Key.

- Select JSON as the key type and click Create to generate and download the JSON key file.

Save the downloaded file in a secure location. You’ll need its contents when configuring the connection in AssetLoom.
The JSON file contains a private key that provides access to your Google Workspace directory when properly authorized. Keep it secure and do not share it through email, support tickets, or public documentation.
If Google Cloud prevents you from creating a key, your organization may have disabled service account key creation through the iam.disableServiceAccountKeyCreation policy. Contact your Google Cloud organization administrator for assistance.
1.4. Copy the Service Account
You’ll also need the service account’s Client ID to authorize directory access.
- From the newly created service account, navigate to the Details tab and locate the Unique ID field.
- Copy the numeric ID and keep it available for the next step.

You can also find the Service Account Client ID value under client_id in the downloaded JSON key file.

Step 2. Authorize Access in Google Workspace Admin Console
Now that your service account is ready, you’ll need to grant it permission to read your organization’s Google Workspace user directory.
This is done through domain-wide delegation, which must be authorized by a Google Workspace Super Admin.
2.1. Open Domain-Wide Delegation Settings
- Go to Google Admin Console and sign in with a Super Admin account.
- From the navigation menu, locate Security > Access and data control > API controls.

- From the API controls screen, find the Domain-wide delegation section and click Manage Domain Wide Delegation.

You’ll see a list of service accounts and applications that have already been authorized to access Google Workspace data.
2.2. Add and Authorize the Service Account
Before adding a new entry, check whether the service account’s Client ID is already listed with the required scope. If it is, you can skip this step.
Otherwise:
- Click Add new and start filling in the required information.
- In the Client ID field, paste the numeric Unique ID you copied from Google Cloud Console.
- In OAuth scopes, enter the following scope:
https://www.googleapis.com/auth/admin.directory.user.readonly. This scope gives AssetLoom read-only access to Google Workspace user directory information. It does not allow AssetLoom to create, modify, or delete Google Workspace users.

- Click Authorize to grant access. Once authorized, the service account should appear in the domain-wide delegation list with the specified scope.
Google’s authorization changes usually take effect within a few minutes, but they can take up to 24 hours to propagate. If authentication fails immediately after authorization, you may need to allow more time before testing the connection again.
Step 3. Connect Google Workspace in AssetLoom
With the service account created and authorized, you can now return to AssetLoom to complete the connection.
3.1. Open Google Workspace Integration
First, navigate to the Integration Hub in AssetLoom. You can access it in either of these ways:
- From the left-side navigation: Click the Integrations shortcut to open the Integration Hub in Admin Settings.

- From Settings: Click your profile icon → Settings, then select Integrations under Administration.

- From the Integration Hub, locate and click the Google Workspace integration card to open the integration setup.

3.2. Enter Your Google Workspace Credentials
At the connection setup screen, you’ll see the available integration capabilities.
- Directory Sync (Available): Syncs Google Workspace users into AssetLoom’s People Directory as non-login asset assignees.
- SAML SSO (Coming soon)
Select the Directory Sync tab, then fill in the following fields:

- Service Account JSON: Open the JSON key file you downloaded from Google Cloud Console in Step 1.3 and paste the entire contents into this field.
- Delegated admin email: Enter the email address of a Google Workspace administrator with permission to read your organization’s user directory. AssetLoom uses this account’s permissions to retrieve user information.
- Customer: Leave the default value as
my_customerto use the Google Workspace tenant associated with the delegated admin account. Alternatively, enter a specific Google Workspace Customer ID.
Select Test Connection to confirm that AssetLoom can authenticate successfully before continuing.
Your credentials are encrypted when stored in AssetLoom and will not be displayed again after saving.
3.3. Set Up Sync Frequency
Use the Sync Schedule dropdown to choose how often AssetLoom should automatically retrieve updated user directory data from Google Workspace.

By default, sync is set to Manual only. This means AssetLoom will not automatically pull data until you select a recurring schedule here or configure one later from the Configuration tab. You can still run a sync manually at any time after the connection is complete.
Once you have entered the credentials and configured the initial sync settings, select Connect to complete the setup. Select Cancel if you want to close the setup without saving the connection.
3.4. Access the Google Workspace Integration Details
Once the connection is successful, you’ll return to the Integration Hub, where Google Workspace will appear among your connected integrations.
To access the integration details:
- Locate the Google Workspace integration card.
- Click the card, then select Google Workspace to open its Integration Details page.

Here, you can review the connection status, monitor synchronization activity, and manage how Google Workspace user data is synced into AssetLoom.

The page includes the following sections:
- Overview: Displays the connection details, sync summary, recent sync activity, and overall sync health.
- Sync Settings: Configure the sync schedule, test connection, or rotate the credentials..
- Field Mapping: Manage how Google Workspace user fields and values are mapped to AssetLoom.
- Sync Behavior: Configure how AssetLoom handles user records during synchronization.
- Sync History: Review previous synchronization runs and their results.
You can also use Sync Now to manually start a synchronization or Disconnect to disconnect Google Workspace from AssetLoom.
Troubleshooting Common Google Workspace Connection Issues
If you’re unable to establish the Google Workspace connection, the following issues may help you identify and resolve the problem.
1. Unauthorized Client (unauthorized_client)
This error usually means the service account has not been correctly authorized to access your Google Workspace directory.
Check that:
- Domain-wide delegation has been configured in Google Workspace Admin Console.
- The Client ID matches the numeric
client_idvalue in your JSON file. - The OAuth scope is entered correctly.
- The authorization has had enough time to take effect.
If everything is configured correctly but the error continues, allow up to 24 hours for Google’s authorization changes to propagate.
2. Not Authorized to Access This Resource
This error can occur when the administrator account specified in AssetLoom does not have permission to read Google Workspace users.
To resolve it, verify the Delegated admin email field in your AssetLoom connection settings.
Use a Google Workspace Super Admin account or an administrator account assigned a role with User → Read permission.
3. Invalid JSON Key or Credentials
If AssetLoom reports an invalid JSON key, the credentials may have been modified or copied incorrectly.
Open the original JSON file and copy its complete contents again, making sure no characters, line breaks, or private key information are missing.
4. Admin SDK API Not Enabled
This error indicates that the Admin SDK API has not been enabled for the Google Cloud project associated with the service account.
Return to Google Cloud Console > APIs & Services > Library, select the correct project, and enable the Admin SDK API.
You can identify the correct Google Cloud project using the project_id value in your service account JSON file.
5. Replace Connection Credentials
If your Google service account key is exposed or needs to be replaced, you can generate a new JSON key in Google Cloud Console.
To replace the key:
- Open Google Cloud Console > IAM & Admin > Service Accounts.
- Select the service account used for the AssetLoom integration.
- Open the Keys tab.
- Create and download a new JSON key.
- Update the AssetLoom connection with the new key.
- Test the connection to confirm the new credentials work.
- Delete the old or compromised key from Google Cloud Console. If it was exposed, revoke it promptly rather than leaving it active.
You don’t need to repeat the domain-wide delegation setup when replacing a key for the same service account, since the authorization is associated with its Client ID.