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.
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:
- Navigate to Google API & Services
- If this is your first time in this console, you will need to create a Project. Click “Select a project” in the top left and a modal will appear.
- From here, select “New Project” and you’ll be given a simple prompt to choose a name. If you are part of an organization as part of your G-Suite, you should associate this project with your organization so that others will be able to access it.
- Provide a Project Name and confirm the Organization and Location are set properly based upon your company.
- Select the OAuth consent screen tab. Make sure you set your application to Internal and click Create.
- Add "onecloud.io" to the list of authorized domains - no other fields are required. After you've added the domain, make sure to hit Enter.
- Click Save
- Navigate back to the Credentials tab and click Create credentials.
- Select OAuth client ID
- Select Web Application and click Create
- Provide a name for the ID
- Enter the value of the Authorized redirect URIs:
- Click Create to access your OAuth Client ID and Client Secret
- View the Client ID and Client Secret
After the Google Client IID is created, simply return to the Google API Services for future access to the Client ID and Client Secret.
Enabling API Access
The final step before you can start using Google Drive in OneCloud is to enable API access. Open the navigation menu on the top left and select “Library” (see screenshot below).
Once you’re in the Library view, there will be a search page. Select “Google Drive” once you’ve searched for it and you should see a button called “Enable” to enable API access. Click this button and you will be ready to start using Google Drive with OneCloud!
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.
|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 should appear:
Be sure to enable pop-ups, as Google will need to confirm new 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.
For documentation on all available commands, see the Google Drive Command Reference.