User Docs
PlatformProduct updates
  • Getting started
    • What is DSPM?
    • Use DSPM in your company
    • Choose how to run DSPM
  • Quick start
  • Deployment guide
    • Sizing
    • Installation
      • Understand installation requirements
        • K3S installation
        • Configuring a HA K3s cluster
        • Configuring Rancher and Fleet agent to run behind an HTTP proxy
        • Install Synergy/Focus/Enterprise using Helm without Rancher
        • Install Synergy/Focus/Enterprise using Rancher
        • Air Gap Installation
        • Uploads to Rancher
      • Upgrade K3s
        • K3s - Upgrade
      • Troubleshooting
        • K3s on RHEL/CentOS/Oracle Linux
        • Networking
        • Configuring Rancher and Fleet agent to run behind a HTTP proxy if cluster was previously registered
    • Estimate hardware capacity needs
  • Administration guide
    • Customer Support Portal
    • Pattern matching
    • Data Controls
    • Analytics
    • Detectors
    • Import custom TLS certificate
    • GQL Quick Guide
    • Critical & Sensitive Classification Attribute Modification
    • How to Check AI Mesh Version
    • Webhooks
    • AI Mesh Overview
    • Is Customer Data Saved by Getvisibility?
  • Enterprise setup
    • Authentication
      • Keycloak configuration
      • Single Sign-on (SSO)
        • Using Azure AD as Keycloak Identity Provider
      • Keycloak User Federation Configuration (LDAP/AD)
      • Enable 2FA
      • Role-Based Access Control (RBAC)
      • Keycloak User Federation using LDAP over SSL
  • Implementation
    • Configuring Taxonomies & Labels
  • Integrations
    • GQL
    • Template Language
    • Multi-Language Machine Learning
    • SIEM Integration
    • Google Drive Auto-labelling
  • Scan with Getvisibility
    • Configure detectors
    • Configure data sources
      • Scan Configuration Fields
      • AWS IAM
      • AWS S3
      • Azure AD
      • Azure Blob
      • Azure Files
      • OneDrive
      • SharePoint Online
      • SharePoint on-premise
      • Box
      • Confluence Cloud
      • LDAP
      • SMB
      • Google IAM
      • Google Drive
      • ChatGPT
      • iManage
      • Dropbox
    • Scanning
      • Data Source Permissions
      • Scan Scheduler
      • Types of Scan
      • Scan History
      • Scan Analytics
      • Supported Languages for ML Classifiers
      • Rescan Files
    • Streaming
      • What is DDR?
      • How to Configure DDR Rules
      • Import Data Controls
      • Monitoring New Files via DDR Streaming
      • DDR Supported Events
      • Lineage
      • Supported Data Sources
      • Azure Blob Streaming Configuration
      • Azure Files Streaming Configuration
      • Confluence Cloud Streaming Configuration
      • Sharepoint Online Streaming Configuration
      • SMB Streaming Configuration
      • OneDrive Streaming Configuration
      • Azure AD Streaming Configuration
      • AWS S3 Streaming Configuration
      • Google Drive Streaming Configuration
      • Google IAM Streaming Configuration
      • AWS IAM Streaming Configuration
      • Box Streaming Configuration
      • Dropbox Streaming Configuration
    • Enterprise Search columns meaning
    • Supported File Types
  • Glossary
  • FAQ
  • EDC - All Documents
    • Deployment - Onboarding
      • EDC-Server Installation Guide
      • EDC-Deployment Flow Guide
        • EDC-installerConfig.json and CLI config Details
      • Deploying the agent using ManageEngine
      • EDC-Mac Agent - Installation Guide
      • Windows Agent Precheck Script
    • Functionality - Guides
      • EDC - Admin Guide - v4
      • EDC -Guide for writing Visual Labels
      • EDC- Guide for Header Footer Options
      • EDC-Metadata Details
      • EDC Supported File Types
      • Agent V4 - Configuration Options for Expert Mode
      • File Lineage - Agent Activities
      • Endpoint Data Discovery
    • Troubleshooting Documents
      • Preventing Users From Disabling Agent
      • Generate Installation Logs
      • Troubleshooting Agent for Windows
      • Guide for missing suggestions
      • Reseller Keycloak Quick Installation Guide
      • Alternative authentication methods for agent
  • EDC - All Documents
Powered by GitBook
On this page
  • Create OAuth2 Credentials
  • Delegate domain-wide authority to your service account
  • Provide required Admin roles to a user
  • Configuring Google Drive connector in Dashboard
  • File tagging

Was this helpful?

Export as PDF
  1. Scan with Getvisibility
  2. Configure data sources

Google Drive

How to configure a Google Drive connection to scan files and folders.

PreviousGoogle IAMNextChatGPT

Last updated 3 months ago

Was this helpful?

Create OAuth2 Credentials

  • Create a Project in Google Cloud Console:

    • Go to the

    • Create a new project or select an existing project

  • Enable the Google Drive, Drive Labels and Admin SDK API:

    • In the Google Cloud Console, navigate to APIs & Services > Library

    • Search for "Google Drive API" and click on it

    • Click the "Enable" button to enable the Google Drive API for the project

    • Search for "Admin SDK API" and click on it

    • Click the "Enable" button to enable the Admin SDK API for the project

    • Search for "Drive Labels API" and click on it

    • Click the "Enable" button to enable Drive Labels API for the project

  • Create OAuth 2.0 Credentials:

    • In the Google Cloud Console, navigate to the APIs & Services > Credentials

    • Click "Create credentials" and select "Service account"

    • Enter a name in the Service account name field and click CREATE AND CONTINUE

    • Under Grant this service account access to the project, select role as Owner and click DONE

    • Select the newly created service account and click Keys > Add Key > Create new key

    • Make sure the key type is set to json and click Create

    • The new private key pair is generated and downloaded to the machine. Note the values of private_key, client_email and client_id

Delegate domain-wide authority to your service account

  • In the Domain wide delegation pane, select "MANAGE DOMAIN-WIDE DELEGATION"

  • Click Add new

  • In the Client ID field, enter the client ID obtained from the service account creation steps above

  • In the OAuth Scopes field, enter a comma-delimited list of the scopes required for the application

  • Use the below scopes:

    For scanning

    • https://www.googleapis.com/auth/admin.directory.user.readonly

    • https://www.googleapis.com/auth/admin.directory.group.readonly

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

    For revoke permissions

    • https://www.googleapis.com/auth/drive

    For tagging

    • https://www.googleapis.com/auth/drive.file

    • https://www.googleapis.com/auth/drive

    • https://www.googleapis.com/auth/drive.admin.labels

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

    • https://www.googleapis.com/auth/drive.labels

    For Extended Streaming Events

    • https://www.googleapis.com/auth/admin.reports.audit.readonly

  • Click Authorize

Provide required Admin roles to a user

In order to perform a scan using Google Drive connector, it needs a user with the below Admin roles assigned:

  • Services Admin

  • User Management

  • Groups Reader

  • Select Users under Directory from the left menu

  • Select a user you want to use for scanning

  • Navigate to User details -> Admin roles and privileges

  • Edit the roles, and enable:

    • Services Admin

    • User Management

    • Groups Reader

  • Click on Save

Note: It might take few minutes before the changes are affected.

Configuring Google Drive connector in Dashboard

  • Navigate to Administration -> Data Sources -> Google Drive -> New scan

  • Enter the details of the OAuth2 credentials obtained previously, also add the user id (in the form of user@domain.com) of the user you assigned roles in the above steps

  • Click on the Folder icon in Path to select a particular user's drive to scan, or leave the path as empty to scan all users

  • Save the configuration

  • Once the configuration is saved, click on the icon on the right and select Start file scan to begin scanning

  • The scan results can be viewed under Dashboard -> Enterprise Search

File tagging

Prerequisites

Default Getvisibility labels need to be created in Google Drive. This process is described below:

  • Turn on Drive labels for the organization

    1. In the Google Admin Console (at admin.google.com)

    2. Click Labels

    3. Select Turn Labels On

    4. Click Save

  • Create Drive labels:

    1. Click New label.

    2. To create one badged label:

      1. Choose a badged label

      2. Choose to start from an example, or from scratch.

      3. Update the title as Classification.

      4. (Optional) Add a description or a learn more URL that points to internal documentation about the label.

      5. Customize options, and assign a colour.

    3. To create a standard label:

      1. Two standard labelsneed to be created; Distribution and Compliance

      2. Click a standard label template or click Create New.

      3. Enter or update the label name.

      4. (Optional) Add a description.

      5. Choose whether the label is copied when the file is copied.

      6. Add a field.

  • Publish the labels

    1. Review the label and any fields.

    2. Click Publish.

    3. Confirm that the lable will be published by clicking Publish.

From your domain's , go to Main menu menu > Security > Access and data control > API controls

They can be added/checked here for the UserID which will be used for impersonation: > Directory > Users > Assign roles > add Services Admin, User Management, and Groups Reader roles, as follows:

Navigate to

Go to Menu

Go to the labels manager at .

Requires having the .

If it’s not open already, open the labels manager () and click the label.

Admin console
admin.google.com
Admin console
https://drive.google.com/labels
Manage Labels privilege
https://drive.google.com/labels
Google Cloud Console
Apps > Google Workspace > Drive and Docs