Netskope LogoNetskope Logo
  • Security Services
  • AI Services
  • Networking Services
  • Analytics Services
  • Integrations
  • getting-started.svgGetting Started
    • Support
    • Community
    • Netskope.com
    © 2026 All Rights Reserved. Netskope Inc.
    Home
    Next Generation API Data Protection Platform
    Next Generation API Data Protection for Google Drive
    Configure Google Drive for the Next Generation API Data Protection

    Configure Google Drive for the Next Generation API Data Protection

    To configure Google Drive for the Next Generation API Data Protection, follow the instructions below.

    Prerequisite

    Before configuring Google Drive for the Next Generation API Data Protection, review the prerequisites.

    • A Google Workspace with Business Standard, Business Plus, or Enterprise edition licenses.

    • A Google super admin account to create a custom role and user for Netskope integration.

    • Ensure that Google Drive is enabled for your organization unit in Google Workspace. Google Drive must be available at the top-level (parent) or any applicable child organizational unit. To verify this setting, log in to admin.google.com using your Google super admin account, then navigate to Apps > Google Workspace > Drive and Docs. Confirm that the Service status is set to ON for the relevant organization units.

    • Ensure that Google Drive SDK is turned on. To check, log in to admin.google.com using your Google super admin account and then navigate to Apps > Google Workspace > Drive and Docs > Features and Applications  and ensure that Drive SDK is turned on.

      Enable Google Drive SDK
    • If you have guest or external users in your SaaS environment belonging to domains considered internal, you must set the appropriate internal domains for Netskope to classify exposure accurately. To set up internal domains, follow this article.

    • If you intend to use Google label badge, make sure the label permission is set to Can view this label or Can apply labels and set values for the organization.

      To set the permission:

      1. Log in to admin.google.com as a super admin.

      2. On the left navigation bar, expand Security > Access and data control > Label manager.

        Label manager requires you to have the Manage Classification Labels administrator privileges.
      3. Under Classification labels, click the first ranked label.

      4. On the right navigation, under Permissions, click Edit and and set the permission to either Can view this label or Can apply labels and set values.

      5. Click Save.

      6. Ensure that the Drive and Docs option is enabled for this label. Selecting Gmail will cause the functionality to fail.

    Create and Assign Custom Role for Netskope

    If you do not plan to use the Google super admin account, you can create a custom role and assign the role to a user to grant access to Next Generation API Data Protection. You can grant privileges / scopes using the default Google super admin role or by creating a custom role exclusively for the Netskope integration. This section describes the steps to create a custom role for Netskope.

    1. Log in to admin.google.com as a super admin.

    2. Click the triple bar on the top-left corner of the home page and navigate to Account > Admin roles.

    3. Click Create new role.

    4. Enter a name and description for the role and click CONTINUE.

    5. Select the admin privilege for the role:

      Netskope does not recommend removing the following privileges. Any removal may result in failure of API calls and policy processing.

      Here is a list of privileges Netskope requires:

      PrivilegesNeeded for
      Services > Drive and Docs > Settings
      (All 5 privileges)
      This privilege is required for listing label information.
      ReportsThis privilege is required for polling changes.
      Domain ManagementThis privilege is required to list the domains under the Google workspace. Netskope uses the
      domains list to determine if a user is internal or external.
      Groups > ReadThis privilege is required to get group information.
      Users > ReadThis privilege is required to get user information.

      Netskope now supports Google label badge. If you intend to use Google label badge, enable the below privilege too.

      PrivilegesNeeded for
      Services> Data Classification > Manage LabelsThis privilege is required for listing label information.
    6. Click CONTINUE, and then click CREATE ROLE.

    Once you have created the custom role, you can assign the role to a user. To assign the role to a user, navigate to Directory > Users, click the user account, navigate to Admin roles and privileges, and assign the role you created above. The user can then authorize Netskope to grant access to your Google Drive instance.

    It is important to note that the user should have an active Google Workspace license.

    Create a Google Cloud Platform (GCP) Project

    Create a GCP that you own. This project will host the service account Netskope uses to access your Google workspace data.

    Follow Create a Google Cloud project in google documentation to create a GCP project in Google cloud console.

    Enable Google APIs

    Enable the required APIs for Google Drive integration with Next Generation API Data Protection. Log in to console.cloud.google.com. In the same project you created, search for each API by name in the top search bar and click Enable:

    • Admin SDK API

    • Google Drive API

    • Drive Labels API – only required if you plan to enable Netskope’s Google label badge feature.

    Create a Service Account

    Create the Google cloud service account Next Generation API Data Protection will use to access your data, then generate and download its credentials.

    1. In the same GCP project, go to Service Accounts, click + Create service account.

    2. Give it a name and description.

      Suggested name: ng-casb-api-gdrive and description: Service account for CASB gdrive

    3. Click Create and close.

    4. Click the new service account and on the Details tab, copy the Email and Unique ID (a.k.a client ID).

      The email ID will be required when you set up the Google Drive instance on the Netskope tenant. The unique ID (a.k.a client ID) will be required for domain-wide delegation.

    5. On the Keys tab, click Add Key > Create new key, choose JSON, and download it.

      Keep the private_key value handy. The key will be required when you set up the Gmail instance on the Netskope tenant.

      If you see a message Service account key creation is disabled, follow the troubleshooting steps documented in this Google article.

    Grant Scopes to the Service Account

    This section describes the steps required to authorize your service account with the domain-wide delegation scopes Netskope needs to access data in Google Drive.

    1. Log in to admin.google.com as a super admin.

    2. Navigate to Security > Access and data control > API controls.

    3. On the API controls page, under Domain wide delegation, click Manage Domain Wide Delegation.

    4. Click Add new.

      A new pop-up opens.

    5. For Client ID, enter the Unique ID of the service account you just created.

    6. For OAuth scopes, enter the following scopes:

      Enter one scope per line.
      • https://www.googleapis.com/auth/userinfo.email

      • https://www.googleapis.com/auth/userinfo.profile

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

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

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

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

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

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

        Netskope now supports Google label badge (read & write). You should grant additional scopes. They are:

        Before you can apply a Google label badge, you should set up a Google Drive DRM instance first. To learn more: Digital Rights Management.
        This feature is part of the Advanced DLP offering. To enable this on your tenant, talk to your Netskope sales representative.
        • https://www.googleapis.com/auth/drive.labels

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

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

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

    7. Click Authorize.

    8. Verify the steps above by checking that your service account appears in the API clients list.

    Configure Google Drive Instance in Netskope UI

    To authorize Netskope to access your Google Drive instance, follow the steps below:

    1. Log in to the Netskope tenant UI and go to Settings > Configure App Access > Next Gen > CASB API.

    2. Under Apps, select Google Drive and click Setup CASB API Instance.

      The Setup Instance window opens.

    3. Under API Admin Email, enter the Google account email of the super admin or a user with a custom role (see Create and Assign Custom Role for Netskope).

    4. Under Administrator Email, enter the email address of the user who will receive an email notification when a policy violation or event triggers. This step is optional.

    5. Under Service Account Email, enter the service account’s email (step 4 of Create a Service Account or client_email in the JSON key).

    6. Under Service Account Private Key, enter the private_key value from the JSON key.

      Copy from -----BEGIN PRIVATE KEY----- to n-----END PRIVATE KEY-----\n.
    7. (optional) Under Enable Data Classification Labels, select the checkbox to allow Next Generation API Data Protection to read Google label badge for this instance.

      Ensure that the pre-requisites, privileges, and OAuth scopes are completed before enabling this checkbox. Grant access may fail if not completed.
      You can change this setting after creating the instance. Changing this setting requires you to re-authorize the instance by signing in to Google again.
      Before re-enabling this option, make sure you have completed all required Google prerequisites. Otherwise, re-authorization fails, and the instance retains its previous configuration.
    8. Under Instance Name, enter the name of the SaaS app instance. This step is optional and if left blank, Netskope will determine the name of the app instance post grant.

    9. Click Grant Access. You will be prompted to log in using a super admin or a user with a custom role and password, and then click Sign In. When the configuration results page opens, click Close.

    Refresh your browser and you will see a green check icon next to the instance name.

    Next, you can view the Next Generation API Data Protection Inventory page to get deep insights on various entities on your Google Drive account. For more information on the Inventory page, see Next Generation API Data Protection Inventory.

    You can receive audit events and standard user behavior analytic alerts in Skope IT. To know more: Next Generation API Data Protection Skope IT Events.

    Next, you should configure a Next Generation API Data Protection policy. To do so, see Next Generation API Data Protection Policy Wizard.

    In this Topic
    • Configure Google Drive for the Next Generation API Data Protection