Skip to main content
McAfee MVISION Cloud

Google Drive API Prerequisites

Prerequisites

The following prerequisites must be met to integrate with Google Drive:

  • Enterprise or Business G Suite license.
  • Super Admin account in your organization's G Suite. Super Admins have administrator permissions and access to the Admin console and corresponding actions in the Admin API. This is required to integrate Google Drive with MVISION Cloud via API.
  • Data Access permissions. Data Access permissions provide access to specific data. Make sure that the following are selected at Apps > G Suite > Settings for Drive and Docs in Admin Console. 
    • Offline. Select Allow users to enable offline Docs.
    • Drive. Select Allow users to download, install, and use Google Drive for Mac/PC.
    • Drive SDK. Permissions that allow the admin to update and configure API access. Learn more here.
    • Add-Ons. Select Allow user to install Google Docs add-ons from add-ons store.

NOTE: This is NOT required if you install the Marketplace app as described in Method 1 - Install the Marketplace App. It is required only for Method 2.

 

  • G Suite Audit access. Use the G Suite Admin Console to preconfigure your account for Audit access. Learn more here.

Authorize MVISION Cloud

To grant MVISION Cloud access to your Google Drive account, use either of these two methods. 

Method 1 - Install the Marketplace App

  1. Go to the Google admin console at https://admin.google.com/OauthTosCom...0&pli=1&fral=1
  2. Specify admin credentials and log in. 
  3. Go to Security > API Controls > App Access Control. On the Apps tab, click Configure New App.
    step-1.png
  4. Search for your OAuth app name (for example, Mcafee Skyhigh for Google) and click Select.
    step-2.png
  5. For App access, select Trusted: Can access all Google services and click Configure.
    step-3.png
  6. Under App Access Control, search for McAfee and confirm the scope of Google API, and click Accept to trust the application.
    step-5.png
  7. The managed app is deployed in the Marketplace. 
    step-4.png
  8. To verify that the app is successfully installed, go to https://admin.google.com and navigate to Apps > Marketplace Apps. McAfee MVISION Cloud for Google Drive should be listed here.
  9. Go to Settings > Service Management, and select your Google Drive instance.
  10. Click Enable API Access. Log in with your Google GSuite Super Admin account. Once you log in successfully, you'll see a green checkmark and a message that says, "You have successfully enabled API Access."

 

Method 2 - Manual

  1. In the G Suite admin console, go to Security > API Controls
  2. Scroll down and click on Domain-Wide Delegation.
    2021-04-14_15-24-37.jpg
  3. in the screen Add a new client ID add the following as Client ID:
    2021-04-10_07-17-06.jpg
217918566396-68pp4387k4c64fiqm15c4g525o91q1s1.apps.googleusercontent.com
1070394232102-aq7i1v2p5pbj7bc5ereln0k80csk9a9e.apps.googleusercontent.com
service-account-client-caprod@shn-offlinedlp-caprod.iam.gserviceaccount.com
  • For the MVISION Cloud GovCloud / FEDRAMP environment:
Please contact McAfee Technical Support or your assigned deployment engineer

4. Then, into the field Oauth scopes (comma-delimited), copy and paste the following 10 API scopes:

https://www.googleapis.com/auth/admin.directory.domain.readonly,
https://www.googleapis.com/auth/admin.directory.group,
https://www.googleapis.com/auth/admin.directory.group.readonly,
https://www.googleapis.com/auth/admin.directory.orgunit,
https://www.googleapis.com/auth/admin.directory.user,
https://www.googleapis.com/auth/admin.directory.user.security,
https://www.googleapis.com/auth/admin.reports.audit.readonly,
https://www.googleapis.com/auth/admin.reports.usage.readonly,
https://www.googleapis.com/auth/drive,
https://www.googleapis.com/auth/drive.file

5. Click on Authorize

Once configured this will look similar to this:

 2021-04-14_15-24-26.jpg


 

  • Was this article helpful?