Skip to content

Google Workspace

This guide covers how to connect Google Workspace to Mainbranch, enabling search across Google Drive, Gmail, and Google Calendar.

The Google Workspace connector provides access to:

  • Google Drive — Documents, spreadsheets, presentations, and other files
  • Gmail — Emails and attachments
  • Google Calendar — Events and meeting details

Before connecting Google Workspace:

  • Admin access to Mainbranch
  • Google Workspace admin access (for organization-wide connection)
  • Understanding of what data will be indexed
  1. Navigate to Apps

    Go to Workspace settings > Setup > Apps.

  2. Select Google Workspace

    Find the Google Workspace connectors (Drive, Gmail, Calendar).

  3. Start Connection

    Click to begin the connection process.

  4. Authorize Access

    You will be redirected to Google. Sign in with a Google Workspace admin account and grant the requested permissions.

  5. Configure Options

    Set any specific options for what to sync.

  6. Complete Setup

    Confirm and start the initial sync.

Mainbranch requests the following permissions:

  • Drive — Read access to files and folders
  • Gmail — Read access to emails
  • Calendar — Read access to events
  • Documents (Docs, Sheets, Slides)
  • PDFs
  • Images
  • Other supported file types
  • File metadata and sharing settings
  • Emails in all folders
  • Email attachments
  • Email metadata (sender, recipients, date)
  • Calendar events
  • Event descriptions
  • Attendee information
  • Mainbranch respects Google Drive sharing settings
  • Users only see files they have access to in Google Drive
  • Shared drives and shared files follow Google’s sharing rules

If a user can see a file in Google Drive:

  • They can see it in Mainbranch search results
  • They can access it through the AI Assistant

If a user cannot see a file in Google Drive:

  • It will not appear in their Mainbranch results
  • Even if other users can see it

The first sync indexes all content. Duration depends on:

  • Amount of data in your Google Workspace
  • Number of users
  • Network conditions

Initial sync can take several hours to complete.

After initial sync:

  • New files are indexed within minutes
  • Changes sync automatically
  • Deleted files are removed from the index

Choose what to include:

  • All users in the organization
  • Specific organizational units
  • Specific users

Select which Google services to connect:

  • Google Drive only
  • Gmail only
  • Google Calendar only
  • All services
  • Verify you have admin permissions
  • Check that the Google account is a workspace admin
  • Try signing out and reconnecting
  • Verify the connection completed successfully
  • Check connector status for errors
  • Allow time for sync to begin
  • Verify the file exists in Google Drive
  • Check permissions on the file
  • Ensure the file type is supported
  • Allow time for sync to complete
  • Permissions sync from Google Drive
  • Changes may take time to reflect
  • Verify sharing settings in Google
  • Only authorized data is accessed
  • Credentials are stored securely
  • Access can be revoked at any time
  • Connection follows Google’s API policies
  • Data handling complies with your organization’s policies
  • Audit logs track sync activity
  • Review what data will be indexed
  • Communicate with your team about the connection
  • Plan for initial sync time
  • Monitor sync status
  • Review indexed content
  • Address any errors promptly
  • Check connector status periodically
  • Keep authorization current
  • Review permissions as needed