Google Apps

Google Apps are a set of cloud-based productivity applications. In order to collect data from Google apps, you must use a Google account that has Admin privileges. Rapid7 recommends that you use a private browsing window to set this event source up to ensure that you log onto the correct admin level account.

In order to read Google Apps logs, the collector needs to reach the Google server to pull the logs, and must be able to connect to

Privacy Policy

Rapid7’s InsightIDR product uses OAuth Authentication to retrieve administrator audit logs from the Google Apps HTTP API. When configuring the Google Apps event source, the only permission that InsightIDR requires in the authorization grant is admin.reports.audit.readonly.

Once configured, Google Admins can see InsightIDR requests in the Google Admin interface.

InsightIDR uses encrypted Amazon Web Service S3 Buckets to store saved data. InsightIDR uses your audit logs to track and detect on potentially malicious admin activity, as well as to make logs available in Log Search for reporting and compliance.

Any data you share with Rapid7 is NOT shared externally and will only be used for internal purposes such as troubleshooting and new feature development. You can read more about Rapid7’s privacy policy here:

Before You Begin

Google Apps is enabled via an OAuth credential. Read about requirements for this credential here:

In order to configure this event source, you will need to be a Google Admin.

If you are logged into an account that does not have Admin privileges, the OAuth popup displays to use that logon instead, which won't have the rights you need. Log out and log onto a Google account that has Admin privileges.

When you are configuring these permissions in the Google API, you only need to check off the Reports Privilege.

Configure InsightIDR to collect data from the event source

After you complete the prerequisite steps and configure the event source to send data, you must add the event source in InsightIDR.

To configure the new event source in InsightIDR:

  1. From the left menu, go to Data Collection and click Setup Event Source > Add Event Source.
  2. Do one of the following:
    • Search for Google Apps in the event sources search bar.
    • In the Product Type filter, select Cloud Service.
  3. Select the Google Apps event source tile.
  4. Select your collector and Google Apps from the event source dropdown.
  5. Name your event source.
  6. Optionally choose to send unparsed logs.
  7. Select your LDAP account attribution preference.
  8. Click Begin to set up OAUTH and start the authorization process.
  9. A new window or tab will open for you to perform an authorization grant with Google.
  10. Click Allow to enable audit reports for the G Suite Domain.
  11. Close the window/tab to return to InsightIDR.
  12. Configure your default domain.
  13. Click Save.

InsightIDR also fetches a listing of all users via the users' API.

Learn more

Google APIs use the OAuth 2.0 protocol for authentication and authorization. Google supports common OAuth 2.0 scenarios such as those for web server, installed, and client-side applications.

For more information, read this article: