Skip to main content

Google Workspace

Imports your Google Workspace logs into DNIF. Upon enabling this integration, the connector uses the pull method to fetch logs from Google Workspace Report API

Pre-requisites
  • Google Workspace User privileges

The user account only needs to have a role with Reports privilege to collect logs.

image 1-1

1. Create a Service Account
  • Go to your Google Workspace domain’s Google Cloud Platform (GCP) Console and sign in with the User.
  • Select a Project. If you haven’t used the Console before:
    • Agree to the Terms of Service and click Create Project.
    • Enter a project name and click Create.
    • Once the project is created, ensure the Project is selected.
  • Click Menu on the top-left corner of the Google Cloud Platform (GCP) Console.
  • Click IAM & Admin > Service accounts.

image 2-2

  • Click +CREATE SERVICE ACCOUNT and enter Service Account Name and Service Account Description details, click CREATE.
2. Grant Service Account Access to Project
  • Click Select a Role dropdown.

image 3-2

  • Select the option Project and Click Viewer role.
image 4
  • Click CONTINUE and proceed.
  • Click Done
3.Create a key for the Service Account

image 5-1

  • Under Actions click ellipses corresponding to the required service account and select Manage Keys.
  • Click Add Key dropdown and then select Create new key.

image 6
  • Ensure that the key type is selected as JSON, click Create.
  • A message pops up displaying
    Private Key saved to your computer
  •  Ensure you save the private key downloaded.
  • Click Close, the private is downloaded.
4. Enable APIs for the service account
  • In the top-left corner of the Admin console, click Menu -> APIs & Services -> Library.
  • Search for Admin SDK API and click ENABLE

image 7

5. Enable API permissions within Google Workspace By Super Admin
  • From your Google Workspace domain’s Admin console, go to the Main menu > Security > Access and data control > API Controls.
  • In the Domain Wide Delegation pane, select Manage Domain Wide Delegation.
  • Click Add New. In the Client ID field, enter the service account’s Client ID. You can find your service account’s client ID in the json file that was downloaded earlier.
  • Click Authorize.

Configurations

The following are the configurations to forward Google Workspace Connector logs to DNIF.‌

image 8

Field Name Description
Connector NameEnter a name for the connector
Connector TypeEnter Google Workspace connector
Log TypesSelect the log types provided by google like admin, login, calendar, chat, meet, etc.
Domain Admin User IDSuper administrator account’s User ID
Credentials FileEnter the details from credentials.json file, which is downloaded while configuring the reports API
  • Click Save after entering all the required details and click Test Connection, to test the configuration.
  • Connection successful message will be displayed on screen along with the time stamp.