Connect via Service Account
This guide explains how to integrate Google Workspace with Zluri using Service Account authentication and domain-wide delegation. This allows Zluri to access user data, groups, licenses, and audit logs from Google Workspace.
Prerequisites
- Admin access to the Google Admin Console
- Admin access to the Google Cloud Console
- Service Account created in the Google Cloud project
- Verified domain in Google Workspace
- GSuite Admin credentials for domain-wide delegation
Step 1: Get API Credentials at Google Workspace
-
From your Google Workspace domain’s Admin Console, navigate to Main menu > Security > API Controls.
-
In the Domain wide delegation pane, select Manage Domain Wide Delegation.
-
Click Add new.
-
In the Client ID field, enter the Zluri service account's Client ID:
112390080167718584607 -
In the OAuth scopes (comma-delimited) field, enter the following scopes:
https://www.googleapis.com/auth/admin.directory.domain.readonly, https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.orgunit.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.directory.user.security, https://www.googleapis.com/auth/admin.reports.audit.readonly, https://www.googleapis.com/auth/admin.reports.usage.readonly, https://www.googleapis.com/auth/apps.licensingFor workflow actions, also add:
https://www.googleapis.com/auth/admin.directory.group, https://www.googleapis.com/auth/gmail.settings.basic, https://www.googleapis.com/auth/gmail.settings.sharing -
Click Authorize.
Note: The Client ID for Zluri is112390080167718584607, which must be added in the Client ID field for domain-wide delegation.
Step 2: Connect the Integration in Zluri
- Log in to the Zluri Admin Console.
- Navigate to Sources → Integrations → Browse Catalog.
- Search for Google Workspace (Service Account).
- Click Connect Integration (or Connect another instance if already connected).
- Upload the downloaded JSON key file.
- Enter your Google Workspace domain (tenant).
- Click Connect.
Step 3: Review and Add Scopes in Zluri
- Review the required scopes presented by Zluri.
- Add additional scopes if required for your use case.
- Choose an authorization method:
- Self-Authorization: Proceed directly to the next step.
- Co-worker Authorization: Enter co-worker's details and share the unique Connect Code.
Step 4: Authorize the Connection
- Enter the email address of the GSuite Admin used in domain-wide delegation.
- Confirm the connection and authorize access through the Zluri interface.
Once authorized, Zluri will begin syncing user and domain-level data from Google Workspace.
Troubleshooting
Connection Fails?
- Double-check the Client ID used in domain-wide delegation.
- Verify that the correct scopes were added.
- Ensure the service account has the necessary permissions.
- Ensure that the JSON key format is valid and correctly uploaded.
- Review organization policies if key creation fails.
This updated version includes the Client ID for Zluri and correctly maps the steps. Let me know if you'd like this formatted into Markdown for use or exported in any other format.
Updated about 4 hours ago
