What Oleria discovers
- Users, aliases, and organizational units from your Google Admin directory.
- Groups and group membership.
- Admin roles and who holds them.
- Third-party app tokens each user has authorized.
- Drive files and sharing, from file metadata, plus Drive activity.
- Admin audit activity from Google Admin reports.
Prerequisites
- Google Super Admin privileges
- Domain-wide delegation for the required scopes. With Authenticate with OAuth, grant it to the Oleria app. With Authenticate with Service Account, grant it to your own service account’s Client ID (see Connect with a service account).
Use a service account (and not an employee account) with super admin privileges for the integration to ensure continuity.
Grant domain-wide delegation
This section grants delegation to Oleria’s Client ID, which applies to the Authenticate with OAuth method. If you connect with a service account, use your own service account’s Client ID with the same scopes instead.1
Sign in to Google Workspace Admin
Use your Super Admin account to sign in to Google Workspace and select the Admin console.

2
Open domain-wide delegation settings
In the Admin console, go to https://admin.google.com/ac/owl/domainwidedelegation or navigate to Menu -> Security -> Access and data control -> API controls -> Manage Domain Wide Delegation.

3
Add the Oleria Client ID and OAuth scopes
Select Add new, enter the Client ID and scopes below, then select Authorize. Enter the scopes as a single comma-separated list in the OAuth scopes field.Client ID: Google Admin - ReportsCloud IdentityGoogle Drive
101716000692695758600Google Admin - DirectoryGoogle doesn’t offer a read-only version of the
admin.directory.user.security scope. Oleria needs it to list the third-party app tokens each user has authorized.
4
Grant remediation scopes (optional)
To perform remediations, add the following scopes to the same domain-wide delegation entry. Separate each scope from the previous one with a comma.To revoke external users’ access:To disable dormant users:To remove user accounts from groups:To add or remove users from delegated admin roles:
5
Grant Drive label scopes (optional)
To view and manage Drive labels, add the following scopes to the same domain-wide delegation entry, separated by commas:
Connect Google Admin and Drive to Oleria
1
Open the integration
Go to your Oleria workspace, select Integrations -> select Google Drive.
2
Choose an authentication method
In Authentication Method, select Authenticate with OAuth (the default) or Authenticate with Service Account. To use a service account, follow Connect with a service account instead of the next step.
3
Authenticate
With Authenticate with OAuth selected, select Connect to complete the integration.
Provide your Super Admin credentials and complete the authentication process.


Connect with a service account
Use this method if you prefer not to sign in interactively. Use your own service account. It needs its own domain-wide delegation entry: in the Google Admin console, go to Security -> Access and data control -> API controls -> Manage Domain Wide Delegation and add the service account’s Client ID with the same OAuth scopes listed in the delegation steps above. Enable the same Google APIs in the service account’s Google Cloud project. The delegation you granted to Oleria’s Client ID for the OAuth method doesn’t apply to your service account.1
Select the method
In Authentication Method, select Authenticate with Service Account.
2
Enter the admin email
In Google Workspace Admin Email, enter the email address of a Super Admin the service account acts on behalf of.
3
Paste the service account key
In Service Account JSON, paste the contents of the service account’s JSON key file.
4
Connect
Select Connect.
Verify the integration
Confirm the Google Admin and Google Drive instances appear on the Connected tab of your Oleria Integrations page with a status of Healthy. After the first sync completes, you can review the discovered users, groups, admin roles, and Drive sharing in your Oleria workspace.
Re-integrate Google Drive and Google Admin
1
Initiate re-integration
Go to the Connected tab of the Integrations page and select the re-integration button to begin.

2
Complete with service account
Select Update and use a service account with Super Admin privileges to complete the re-integration.


