跳至正文

Google Workspace Integration

Overview

This integration collects login events, Drive file activity, OAuth app authorizations, admin console changes, and Gmail phishing alerts from Google Workspace via the Admin SDK Reports API.

Supported services: Gmail, Google Drive, Calendar, Admin Console


Prerequisites

  • A KYRA MDR Collector installed and running (Installation Guide)
  • Google Workspace Business Starter plan or higher
  • Google Workspace super admin access
  • A Google Cloud project with Admin SDK API enabled

Configuration

Step 1: Create a Service Account

  1. Go to Google Cloud Console
  2. Create a project and enable the Admin SDK API
  3. Create a service account under IAM & Admin > Service Accounts
  4. Generate a JSON key for the service account

Step 2: Delegate Domain-Wide Authority

  1. In the Google Admin console, go to Security > API Controls > Domain-wide Delegation
  2. Add the service account Client ID with the following scopes:
    • https://www.googleapis.com/auth/admin.reports.audit.readonly
    • https://www.googleapis.com/auth/apps.alerts

Step 3: Verify API Access

GET https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/login
Authorization: Bearer <OAuth2_token>

Step 4: Provide Credentials to KYRA MDR

Upload the service account JSON key in the KYRA MDR integration settings.


Collected Log Types

Log TypeSecurity UsePriority
Login success/failureAccount takeover, brute force detectionCritical
Suspicious loginGoogle-detected anomalies (foreign IP, new device)Critical
MFA eventsMFA bypass attempt detectionHigh
Drive external sharingData exfiltration detectionCritical
Drive bulk downloadPre-resignation data theftHigh
OAuth app authorizationMalicious app access detectionHigh
Admin setting changesSecurity policy weakening detectionHigh
Gmail phishing alertsPhishing email detectionCritical
Password changesPost-compromise credential changesHigh

Troubleshooting

API Authentication Errors

  1. Verify the service account JSON key is valid
  2. Ensure domain-wide delegation is configured with the correct scopes
  3. Confirm the Admin SDK API is enabled in the Google Cloud project

Missing Events

  • Some events require Google Workspace Business Plus or Enterprise licenses
  • Alert Center API events require separate enablement

For additional help, contact kyra@seekerslab.com.