Recommended Agent: On-Demand
Supported Agents: On-Demand or Self-Hosted
Is Auto-Discovered By: N/A
Can Auto-Discover: Child Inspectors (Delegated Access)
Parent/Child Type Inspector: Yes
Inspection via: API
Data Summary: Google Workspace, Google Drive
Video isn't playing? Click here.
Video isn't playing? Click here.
Liongard Google Cloud Services Inspectors run via service accounts set up in the Google Cloud Platform and are configured similarly.
To set up all Google Cloud Services Inspectors, you will complete the following steps:
- Step 1: Create a Project in Google Cloud Platform
- Step 2: Enable the Required APIs
- Step 3: Create a Service Account
- Step 4: Authorize Your Service Account in Google Workspace
Once you have set up your service account and authorized it, you should use it across all Google Cloud Services Inspectors
For each Inspector Type (e.g. Google Workspace, Google Drive, etc), you will follow the following steps.
The first portion of the Liongard Google Cloud Services Inspectors' setup process takes place in the Google Cloud Platform. The following steps will run through how to create a new project for the Inspector.
Log in to the Google Cloud Platform console using an account with super administrator privileges in the Google Workspace organization you're trying to inspect.
Under the Project drop-down menu, to the left of the Google Cloud Platform logo, ensure that your Google Workspace organization/account is selected under Organization.
Select "New Project" and fill out the project details:
Project Name: Liongard Inspector
Organization: Parent organization
Location: Parent organization location
Liongard's Google Cloud Services Inspectors require several different APIs to be enabled in your project. In this step, we'll run through enabling these APIs via the API Library.
- In the left-hand sidebar, select APIs & Services > Library
- Reference the table below to determine which APIs to enable. Then, select Enable to activate them:
Admin SDK API
Google Workspace Reseller API (optional)
Enterprise License Manager API
Google Drive API
In this step, we'll run through how to configure a service account to make requests against Google's APIs.
- In the left-hand sidebar, select IAM & Admin > Service Accounts.
- Select + Create Service Account and fill out the service account details as follows:
- Service account Name: Liongard Inspector (Suggested)
- Service account ID: Leave auto-filled input
- Service account description: (Optional)
- Once done, select Create.
- For the Grant this service account access to project (optional), grant the following IAM roles to your service account using the Select a role drop-down menu, select service accounts, and select the below options:
- Service Account User
- Service Account Token Creator
- Once done, select Continue.
- Skip the Grant users access to this service account (optional) step. Using the "Actions" menu on the far right of your new service account's row, select Manage keys.
- On the next page, select Add Key > Create new key
- Select JSON for key type. Then, select Create. This will download a private key file. Keep this file handy, as Liongard Google Cloud Services Inspectors will need it to authenticate with Google's APIs. Treat this file like you would a sensitive password.
Replacing Your Private Key File
If you happen to lose your original private key file, you can repeat the aforementioned steps to generate a new private key file.
While you're still in the service account settings menu, select the Details tab on the far left and select Show Domain-Wide Delegation to reveal a checkbox labeled Enable G Suite Domain-wide Delegation, then enable it.
While you're on the "Details" tab, copy down the value labeled Unique ID. You'll need this value to identify your service account when authorizing it in your Google Workspace account.
You can also find this value inside the private key file you downloaded.
- You will be prompted to configure an OAuth consent screen. Fill in the details for the consent screen:
- Product name for the consent screen: Liongard Inspector (Suggested)
- Email address: (Auto-populated) If you would like to change this, select Configure Consent Screen > select Internal > select Create. Edit these fields as needed, and select Save.
Your service account has now been assigned a client.
This step takes place in the Google Workspace admin console. In any web browser, go to admin.google.com and log into your Google Workspace account as a super administrator.
Select Security from the list of visible controls.
- At the bottom of the next page, select API controls > Manage Domain Wide Delegation.
- On the next page, select Add new.
- In the Add a new client ID modal, add the unique (client) ID associated with the service account you created. Under OAuth scopes (comma-delimited), copy-and-paste the required scopes for the Inspector(s) you wish to configure (see the lists below) and select Authorize:
https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly, https://www.googleapis.com/auth/admin.directory.group.member.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.alias.readonly, https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly, https://www.googleapis.com/auth/admin.directory.userschema.readonly, https://www.googleapis.com/auth/admin.directory.customer.readonly, https://www.googleapis.com/auth/admin.directory.domain.readonly, https://www.googleapis.com/auth/admin.directory.device.mobile.readonly, https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly, https://www.googleapis.com/auth/admin.reports.audit.readonly, https://www.googleapis.com/auth/admin.reports.usage.readonly, https://www.googleapis.com/auth/apps.order.readonly, https://www.googleapis.com/auth/calendar.readonly, https://www.googleapis.com/auth/calendar.events.readonly, https://www.googleapis.com/auth/calendar.settings.readonly, https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/drive.activity.readonly, https://www.googleapis.com/auth/apps.licensing
https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/apps.order.readonly, https://www.googleapis.com/auth/admin.directory.user.readonly, https://www.googleapis.com/auth/admin.directory.group.readonly, https://www.googleapis.com/auth/admin.directory.domain.readonly,
For each system you are deploying, you must first set up a Parent Inspector and then activate the Child Inspectors. Repeat these steps for each system you wish to deploy Inspectors.
Since Google Cloud Services Inspectors are multi-tenant systems where a single portal can be used to manage many Environments, you will set up a single "Parent" Inspector that will then auto-discover "Child" Inspectors for each Environment.
In Liongard, navigate to Admin > Inspectors > Navigate to the Appropriate Google Cloud Services Inspector > Add System.
Fill in the following information:
- Type of Inspector: Parent
- Environment: Select your MSP's Environment
- Friendly Name: Suggested "[MSP Name] [Inspector Name] Parent"
- Agent: Select On-Demand Agent
- Inspector Version: Latest
- Google Workspace Admin Email: Email of a Super Administrator on the Google Workspace account to be inspected under Google Workspace Admin Email
- Private Key: The entire contents of the private key file you created during the Google Cloud Platform (GCP) portion of the setup process
- For Google Workspace: Enable Google Workspace Reseller API: If you're enrolled as a Google Workspace Authorized Reseller, select this option to enable auto-discovery
- Scheduling: The Inspector will default to run once a day at the time the Inspector is set up. Here you can adjust the schedule
Select Save. The Inspector will now be triggered to run within the minute.
After the first run of the Parent Inspector, your client Google Cloud Services organizations will be auto-discovered in the Discovered Systems tab on the Inspectors > Appropriate Google Cloud Services Inspector page.
Navigate to the Discovered Systems tab in your Inspectors > Appropriate Google Cloud Services Inspector page
- Activate or Archive your Discovered Systems by ensuring that they're mapped to the correct Environment > Check the checkbox to the left of Inspector(s) > Select the Actions drop down menu > Activate Launchpoints
If you would like these Inspector's data to be sent to ConnectWise and/or IT Glue, turn on Flexible Assets/Configurations for these Inspectors:
- ConnectWise: Admin > Integrations > ConnectWise > Configuration Types > Confirm the "Configuration Auto-Updating" toggle is enabled
- IT Glue: Admin > Integrations > IT Glue > Flexible Assets > Confirm the "Flexible Asset Auto-Updating" toggle is enabled
Updated 8 days ago