Configuration of Google G Suite
The Snow Integration Connector for Google G Suite is used to determine the number of registered G Suite users.
The configuration must be started and prepared according to SaaS connector configuration.
Prerequisites
Credentials for a G Suite Team account with the role User management are required.
Set up a G Suite app
Go to the G Suite admin console on https://gsuite.google.com/products/admin/.
To sign in to the console:
Select Admin console.
Select or enter your G Suite Team account email address.
Enter your password for the G Suite Team account.
Select Next.
The G Suite dashboard appears.
Go to Security > API controls.
Note
API controls may be named App access control.
Select Trust internal, domain-owned apps.
Select Save.
To verify the domain ownership inside G Suite:
On the G Suite dashboard, select Verify domain.
The Add a meta tag to your homepage dialog box appears.
Copy the Meta tag value to the homepage of your website, and then select I have added the meta tag to my homepage.
Select Verify
A message will be displayed saying if the website was successfully verified.
Navigate to https://console.developers.google.com and create a project.
Select the project and enable Admin SDK from the API library.
Go to the OAuth consent screen page in your project:
For User type, select Internal, and then CREATE.
The OAuth consent screen page appears.
For Application Type, select Internal.
Add Application Name.
Select Add scope.
The Add scope window appears.
Select the ../auth/admin.reports.usage.readonly scope.
Select Add.
Select Save.
Go to the Credentials page in your project.
Select + Create credentials.
Select OAuth Client ID.
The OAuth Client ID page appears.
In Application Type, select Web application.
Enter the Name of the app.
In the Authorized redirect URIs section, select + Add Uri.
In URIs, enter http://localhost:8080.
Select Create.
Your Client ID and Your Client Secret are displayed in the OAuth client created window. Save these values as they are used when configuring Client ID and Client Secret in the connector.
Select OK.
Configure the Google G Suite connector
In the Configure section at the bottom of Connector Configuration: SaaS:
In the Client ID box, enter the value for the Client ID of the created app in Set up a G Suite app.
In the Client Secret box, enter the value for Client Secret of the created app in Set up a G Suite app.
In the Redirect URI box enter the value for a redirect uri.
Note
The redirect URI can for example be http://localhost:8080 if it is not used by another application.
In the Domain name box, enter the address of the GSuite connected website.
Example 8.yourdomain.com
Note
The address of the GSuite connected website should not contain protocol name or www. Examples of invalid entries: http://yourdomain.com, https://www.yourdomain.com, www.yourdomain.com
Select Get URI.
The All good dialog box appears.
Authenticate and generate the URI for the URI from browser box:
In the All good dialog box, select OK.
A default browser opens.
Enter the credentials for your G Suite Team account and select Next.
Select Allow.
A uri will appear in the browser address field.
Enter the uri in the URI from browser box.
Select Get token.
A message saying that the token is successfully acquired will appear.
To check if the connection can be established, select Test Connection.
If the connection could not be established, verify that the connector has been configured according to Step 1 to Step 8.
Select the Active checkbox to allow the data to be aggregated.
Select Save.
Note
Version 5.8 of Snow Integration Manager fetches only last login time for the Google G Suite accounts. The last login time is set as the last activity time for Google G Suite account users. However, if the user is using a POP or IMAP email client, and actively using Gmail, then the last login time will not be tracked in Snow Integration Manager 5.8. Therefore, active users can be flagged as inactive if they do not log in to the Google G Suite website.
Snow Integration Manager 5.9, and later versions, fetches last email interaction time for Google G Suite users which provides more accurate data. However, a token acquired in Snow Integration Manager 5.8 does not provide enough permission to fetch email activity report. This can be a problem if the Snow Integration Manager user has scheduled a Google G Suite aggregation using Snow Integration Manager 5.8 and upgraded to Snow Integration Manager 5.9 before the aggregation starts. To solve this, perform Step 5 to Step 9 to fetch a new token. The new token will have enough permissions to fetch the email usage report.