Skip to main content

Connect Google Workspace

Integrate Anzenna with Google Workspace to enable comprehensive monitoring of Google Drive, Gmail, and other Workspace applications with Data Loss Prevention (DLP) capabilities.

Prerequisites

  • Google Workspace Super Admin access
  • Anzenna account
  • Domain-wide delegation permissions

Overview

The integration provides:

  • Google Drive activity monitoring
  • File sharing and access tracking
  • DLP rule enforcement
  • Alert monitoring from Google Admin
  • Device management visibility
  • Optional: File remediation capabilities

Step-by-Step Instructions

Part 1: Initial Authentication

  1. Navigate to

    app.anzenna.ai

  2. Click Sign in with Google

  3. Select your corporate Google account

  4. Click Connect application to proceed

Part 2: Grant Initial Permissions

  1. Review the requested permissions
  2. Select all three checkboxes to authorize Anzenna's access:

    • View and manage Drive metadata
    • View Drive activity
    • View security alerts
  3. Click Allow to grant permissions

Part 3: Configure Domain-Wide Delegation

  1. Open a new tab and navigate to

    admin.google.com

  2. Go to Security > API Controls

  3. Click Domain-wide Delegation

  4. Click Add new

Part 4: Add Anzenna Client ID

In the Client ID field, enter:

114027939705457207819

Part 5: Configure OAuth Scopes

Add these scopes (comma-separated or line-by-line):

Alert Monitoring:

https://www.googleapis.com/auth/apps.alerts

Drive Metadata (Required):

https://www.googleapis.com/auth/drive.metadata.readonly

Drive Activity (Required):

https://www.googleapis.com/auth/drive.activity.readonly

Device Management:

https://www.googleapis.com/auth/cloud-identity.devices.readonly

Drive Remediation (Optional):

https://www.googleapis.com/auth/drive
  1. Click AUTHORIZE to confirm delegation

Part 6: Finalize in Anzenna

  1. Return to

    app.anzenna.ai

  2. Navigate to Settings > Integrations

  3. Find the Google Workspace integration
  4. Click Re-sync to refresh the connection with new scopes

  5. Verify integration shows as Connected

Verification

  1. Wait 15-30 minutes for initial sync
  2. Navigate to Documents dashboard

  3. Verify Google Drive files are appearing
  4. Check file sharing events are visible
  5. Review Google Alerts are syncing

What Data is Collected

Drive Activity

  • File creations, modifications, deletions
  • File sharing events
  • Permission changes
  • Downloads and exports
  • Comment activity
  • Folder operations

File Metadata

  • File names and types
  • Owner information
  • Sharing settings
  • Permissions lists
  • File sizes
  • Last modified dates

Security Alerts

  • DLP rule violations
  • Suspicious sharing activity
  • External sharing alerts
  • Device compliance alerts
  • Admin activity alerts

Device Information

  • Enrolled devices
  • Device compliance status
  • Mobile device inventory
  • Security settings

DLP Capabilities

With domain-wide delegation, Anzenna can:

  • Monitor DLP rule violations in real-time
  • Track sensitive data sharing
  • Alert on policy breaches
  • Identify data exfiltration attempts
  • Correlate sharing patterns

Remediation Capabilities

With the drive scope enabled (optional):

  • Revoke sharing permissions
  • Delete shared links
  • Quarantine files
  • Change file permissions
  • Move files to secure locations
Remediation Scope

The https://www.googleapis.com/auth/drive scope grants write access. Only enable if you need automated remediation capabilities.

Troubleshooting

Connection Fails

Authorization errors:

  • Verify Client ID is exactly: 114027939705457207819

  • Check all scopes are entered correctly
  • Ensure no extra spaces in scope URLs
  • Confirm domain-wide delegation is authorized

No Data Appearing

Drive files not syncing:

  • Wait 30-60 minutes for initial sync
  • Verify domain-wide delegation is active
  • Check that users have Drive files
  • Ensure metadata readonly scope is granted

Permission Errors

Insufficient permissions:

  • Review all five scopes are added
  • Verify authorization was clicked
  • Check Super Admin role for setup user
  • Ensure API access is enabled in Workspace

Re-sync Doesn't Work

Re-sync fails after delegation:

  • Wait 10-15 minutes for Google propagation
  • Try disconnecting and reconnecting
  • Clear browser cache
  • Check Google Admin audit logs

Security Considerations

  • Domain-wide delegation - Grants Anzenna access on behalf of all users

  • Scope limitation - Only grants specific, documented permissions

  • Read-only default - Write access only if remediation scope added

  • Audit logging - All access logged in Google Admin

  • Revocable - Can be removed anytime from domain-wide delegation

Best Practices

  1. Test in staging - Use test workspace first if available

  2. Start read-only - Add remediation scope only if needed

  3. Monitor alerts - Check Google Admin security alerts

  4. Regular audits - Review delegation quarterly

  5. Document setup - Record which scopes were granted

  6. User communication - Inform employees about monitoring

  7. Compliance review - Ensure meets data privacy requirements

Integration Maintenance

Regular Checks

Perform monthly:

  • Verify connection active
  • Check data freshness
  • Review sync timestamps
  • Test sample queries

Scope Management

To add or remove scopes:

  1. Edit domain-wide delegation in Google Admin

  2. Update scope list
  3. Click Authorize
  4. Re-sync in Anzenna
  5. Verify new capabilities

Credential Rotation

Domain-wide delegation doesn't expire, but:

  • Review delegation annually
  • Audit which apps have delegation
  • Remove unused delegations
  • Document active integrations

Google Workspace Admin Settings

Enable API Access

Ensure API access is enabled:

  1. Go to Security > API Controls

  2. Verify "Enable API access" is checked
  3. If disabled, enable and wait 24 hours

DLP Rules

To maximize Anzenna's DLP monitoring:

  1. Configure DLP rules in Google Admin
  2. Set up Gmail and Drive rules
  3. Enable alert notifications
  4. Anzenna will monitor rule violations

Need help? Contact

Anzenna Support

for assistance.