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 firstname.lastname@example.org to discuss the requirements and we would be happy to consider incorporating the capability into OneCloud.
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.
- Navigate to the API & Services -> Credentials area.
- Next, select the "OAuth consent screen" tab. Make sure you set you application to "Internal" and that you 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. Be sure to save when you are finished.
- 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
After the Google Client ID is created, simply return to the Google API Services for future access to the Client ID and Client Secret.
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!
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.
Choose a GroundRunner or CloudRunner
Copy and Paste the Client ID from the Google API Services
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.