Google Drive

➤ To configure the server settings, the following fields are required.

  • Name
  • Admin Email
  • Description
  • Process
  • JSON Credential Details
  • Country
  • City
  • Time Zone

Developer Setup Guide

  1. Create Project
  2. Enable API
  3. Create Credentials
  4. Add Scope

1. Create Project

  1. Sign in to the Google Cloud Console (https://console.cloud.google.com/)
  2. Select New Project from the projects drop down.
  3. Enter Project Name and click Create.

2. Enable API

  1. In the left navigation menu, click API & Services.
  2. Click +Enable API & Services.
  3. Search and enable following APIs:
    • Gmail
    • Google Drive API
    • Admin SDK API

Create Credentials

  1. Under API & Services, navigate to Credentials tab.
  2. Click create credentials and choose Service account key.
  3. Enter required fields.
  4. Choose key type as JSON.
  5. Click Continue. JSON file will get downloaded.

Adding Scopes

  1. Navigate to Google Domain wide Delegation.(https://admin.google.com/ac/owl/domainwidedelegation)
  2. In the left pane, click on Security >> Access and Data Control >> API Controls.
  3. Under Domain wide delegation click Manage Domain Wide Delegation.
  4. Click Add New >> Enter the clientId (you can find this value inside the JSON credentials file that you downloaded from the Google Cloud Console in the previous step).
  5. Add following scopes under scope:
    • https://www.googleapis.com/auth/gmail.labels
    • https://www.googleapis.com/auth/gmail.readonly
    • https://www.googleapis.com/auth/gmail.readonly
    • https://www.googleapis.com/auth/gmail.readonly
    • https://mail.google.com/
    • https://www.googleapis.com/auth/admin.directory.user.readonly
    • https://www.googleapis.com/auth/gmail.modify
    • https://www.googleapis.com/auth/drive.readonly
    • https://www.googleapis.com/auth/drive.file
    • https://www.googleapis.com/auth/drive
Was this page helpful?