Connect Google Drive with App Xchange

Follow these steps to connect Google Drive with App Xchange.

For additional details on this task, see the following resources from Google Workspace Help:

To connect Google Drive with App Xchange:

  1. Configure your Google Cloud project.
    1. In Google Cloud, create a new project for your app with a descriptive name.
    2. Navigate to Branding, then add the authorized domain Trimble.com to your new project.
    3. Navigate to Audience, then add yourself as a test user to the app.
      For more information about verification and publishing, see OAuth App Verification and Manage OAuth App Branding in Google Cloud Platform Console Help.
    4. Navigate to Clients, then create an OAuth client ID with the following parameters.
      • Type: Web Application
      • Redirect URI: https://app.xchange.trimble.com/api/app-builder/v1/oauth/authenticate/callback
    5. Record your Client ID and Client Secret for later.
      Tip: Select the client to view your Client Secret.
    6. Navigate to Data Access and add https://www.googleapis.com/auth/drive to Scopes.
  2. Enter the connector details in App Xchange.
    1. Navigate to Workspace > Integrations, then select Add Connection next to this connector.
    2. Create the OAuth Client using the OAuth2CodeFlow connector definition. Enter following values.
      • OAuth Client: OAuth 2.0 Client Credentials
      • Name: Enter a descriptive name for your OAuth Client.
      • Client ID: Enter the value you previously recorded.
      • Client secret: Enter the value you previously recorded.
      • Client secret expiration: Leave this blank.
      • Token URL: https://oauth2.googleapis.com/token
      • Refresh URL: https://oauth2.googleapis.com/token
      • Scope: https://www.googleapis.com/auth/drive
        Note: If you intentionally want to restrict the connectors functionality, you may choose another Google Drive API scope.
      • Prompt: consent
      • Client authentication: Select Basic auth header from the dropdown.

      For more information, see Create an OAuth Client.

    3. Under Additional parameters, select Add Item. Enter the following values.
      • Key: access_type
      • Value: offline
    4. Select Save.
  3. Enable the Google Drive API.
    1. In API Library, select Google Drive API from the API Library.
    2. Select Enable.
The connector is connected.