OneCloud

Google Drive

The OneCloud Google Drive BizApp enables OneCloud to interact with Google Drive to perform various tasks such as upload, download, move, search and delete files as well as create and delete folders.

For documentation on all available commands, see the Google Drive Command Reference.

Need a specialized command for Google Drive?

If there are specific operations that your company is looking to perform with Google Drive, please contact support@onecloud.io to discuss the requirements and we would be happy to consider incorporating the capability into OneCloud.

Connection Setup

Creating a Google OAuth 2.0 Client ID

OneCloud connects to Google Drive via the REST API. In order to automate functionality within Google Drive from OneCloud, you'll need to create an OAuth 2.0 client ID. Please follow these instructions:

  1. Navigate to Google API & Services
  2. Choose Credentials
  3. Select OAuth client ID
  4. Select Web Application and click Create
  1. Provide a name for the ID
  2. Enter the value of the Authorized JavaScript origins*:
    https://app.onecloud.io
  3. Enter the value of the Authorized redirect URIs:
    https://app.onecloud.io/oauth/callback
  4. Click Create to access your OAuth Client ID and Client Secret

After the Google Client ID is created, simply return to the Google API Services for future access to the Client ID and Client Secret.

Creating a OneCloud Connection

In order to automate functionality within Google Drive from OneCloud, you'll need to navigate to the connection manager to create a connection.

From here, choose Google Drive from the service drop-down and select the appropriate Runner. Now, enter values for the following fields and click Connect.

Input
Detail

Runner

Choose a GroundRunner or CloudRunner

Client ID

Copy and Paste the Client ID from the Google API Services

Client Secret

Copy and Paste the Client Secret from the Google API Services

When you click Connect, the following flow should appear:

Be sure to enable pop-ups, as Google will need to confirm a few choices.

Select an account to authenticate against.

If the account authenticates, allow authorization for future usage.

Confirmation of success.

If successful, a similar confirmation will appear inside of the OneCloud connection setup:

Finalize the setup of the OneCloud Connection by enabling the connection in certain workspaces and environments.