Integrate Google Workspace with Hudu to sync users and licensing information. This setup uses Google’s Admin SDK API and Enterprise License Manager API for full functionality. Before setting up the Google Workspace integration, we recommend reviewing our Understanding Integrations article for foundational concepts and helpful tips.
What You'll Need
- Admin access to both Google Cloud Console (console.cloud.google.com) and Google Workspace Admin Console (admin.google.com).
- Admin access to your Hudu instance.
- A designated Google Cloud Project for this integration.
At any time, you can come back to your Hudu admin area >> Integrations >> Google Workspace to make changes to the integration.
Integration Features
- Sync Google Workspace users into Hudu.
- Automatically pull licensing data to see how many and what types of licenses are in use.
What Hudu Needs from Google Workspace
To successfully integrate with Google Workspace, Hudu requires:
- A Google Cloud project with Admin SDK API and Enterprise License Manager API enabled.
-
A configured OAuth 2.0 web application with:
- Authorized JavaScript origins matching your Hudu domain.
-
Authorized redirect URI ending in
/admin/auth/google/oauth/callback. -
(Optional)
https://oauth.pstmn.io/v1/callbackfor debugging Postman requests.
- A valid Client ID and Client Secret.
- Domain-wide delegation configured in the Google Admin Console using the Client ID and required OAuth scopes.
Obtaining the Google Workspace Information
Enable Google APIs
-
Go to
console.cloud.google.com,
select or create your project.
-
Navigate to APIs & Services > Library.
-
Search for both Admin SDK API and
Enterprise License Manager API and enable them.
Configure OAuth Consent and Client Credentials
- Go to APIs & Services > OAuth consent screen, then click Create Client.
- Set the client type to Web application.
- Name the client (e.g., “Hudu Integration”).
-
Add your Hudu domain under
Authorized JavaScript origins,
e.g.:
-
http://localhost(testing) -
https://internal.hudu.app/ -
https://staging.huducloud.com/
-
-
Add redirect URIs matching your origins, appended with
/admin/auth/google/oauth/callback. -
Optionally add
https://oauth.pstmn.io/v1/callbackfor Postman troubleshooting.
Save and note the Client ID and Client Secret from the modal or downloaded JSON. Store these securely.
Enable Domain-Wide Delegation
- Go to admin.google.com.
- Navigate: Security > Access and data control > API controls.
-
Select Manage Domain Wide Delegation.
- Add a new client.
- Paste the Client ID from your JSON.
-
Enter these OAuth scopes (comma-separated):
openid,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.directory.orgunit.readonly,https://www.googleapis.com/auth/admin.directory.domain.readonly,https://www.googleapis.com/auth/admin.reports.usage.readonly,https://www.googleapis.com/auth/apps.licensing,https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/userinfo.profile
Finalize Integration
Wait a few minutes for Google to propagate the delegation settings, then plug the Client ID and Secret into Hudu’s integration settings to complete setup.
Enabling the Google Workspace Integration
Integrations can be enabled at any time, during Hudu environment testing or in production.
Once enabled, integrations can be merged into existing documentation based on predefined rules.
This allows you to configure the integration upfront or connect it later as needed.
-
To enable the integration:
Navigate to the Hudu admin area (Admin → Integrations)
Select from the list
Setting up the Integration in Hudu
Step 1. Connect to Google Workspace
- Select the company for the integration
- If you have already setup a Google Workspace integration for another company, select New Integration to add another integration.
- Enter Client ID and Client Secret
- Select a default asset layout for your Google Workspace users
- Please note, the asset layout must be created and active to select it from the drop down.
If you don't see/have not created any asset layouts yet, you’ll need to create these. Visit Asset Layouts for additional information!
Step 2. Grant Hudu permission to access Google Workspace.
- Google requires a user to log in and grant Hudu permission to fetch data.
- Save the integration settings and return to the setup page in order to grant permission.
Step 3. Test connection and run an initial sync
- On the integration overview page, click Test Connection
- If successful, start an initial sync to bring in users.
Make sure to test the integration for a successful connection before continuing; do not continue on until you see a connection successful message display.
FAQ
Answer: Native integrations will automatically re-sync (update) every 3 hours.
You can also use either the global or the card-specific re-sync features to refresh native integration syncs at any point.
Answer: If the Google Workspace sync has been loading for a significant amount of time (it can take up to 10 minutes), follow the steps below:
-
- Test the connection to ensure Hudu and Google Workspace are communicating correctly
- Verify your Google Workspace credentials
- Refresh the page (while a sync is actively running)
- Stop the sync and restart the sync
Answer: It should appear on subsequent re-syncs. If it is still not appearing, ensure that it has not been archived.
Notes: Active integrations sync automatically every 3 hours; manual re-syncs can be performed either within an integrations’ settings page or by clicking the top right re-sync button.