Overview
Perform operations on files and folders on Google Drive via the Workflow Automator.
Description
Orchestration apps let you automate repeatable tasks and actions that span across a diverse set of systems and applications using workflows. The list of actions supported for this app include:
File and Folder Management
Get File Or Folder
Create File Or Folder
Update File Or Folder
Delete File Or Folder
Upload Ticket Attachments to Drive
Attach File to Ticket
Attach File to Ticket Note
Permission Management
Get Permission by ID
Create Permission
Update Permission
Delete Permission
App Installation Parameters:
Client Email
Private Key
Private Key ID
Email ID(The GSuite account email address)
The following two parameters are required for attaching documents to your Freshservice tickets as either a note or directly to a new ticket.
Freshservice Domain - The domain of your Freshservice tenant. Example: demo.freshservice.com
Freshservice API Key - Login to your Freshservice tenant. Click on your profile icon then "Profile Settings" on the right side pane, under "Your API Key" complete the captcha and copy your API key.
Installation Parameters Description:
All app installation parameters are present in the service account credentials (JSON) generated in Prerequisite(A).
Prerequisites
A. Create a Service Account:
Open the Service accounts page.
If prompted, select a project, or create a new one.
Click add Create service account.
Under Service account details, fill in the "Name", "ID", and "Description" of the service account, then click Create.
Optional: Under Service account permissions, select the IAM roles to grant to the service account, then click Continue.
Optional: Under Grant users access to this service account, add the users or groups that are allowed to use and manage the service account.
After the service account is created, open the service account, click on "Edit" then click "Add Key" under "Keys", then click "Create New Key".
Then click on "Domain-Wide Delegation" and then tick "Enable G Suite Domain-wide Delegation".
Your new public/private key pair is generated and downloaded to your machine; it serves as the only copy of the private key. You are responsible for storing it securely. If you lose this key pair, you will need to generate a new one.
B. Enable API & Services:
Click on Enable API & Services
Search for Google Drive API
Enable Google Drive API
C. Assign Oauth Scopes for Google API:
Go to the Admin console. From the Admin console, go to Home > Security > API controls.
Under Domain wide delegation, click Manage Domain Wide Delegation.
On the Manage domain wide delegation page, click Add new.
Enter the client ID of the service account or OAuth2 client ID of the app. Under OAuth Scope, add each scope that the application can access, as mentioned in Prerequisites(D) below.
Click Authorize.
D. Oauth Scopes
Usecases
Now that you've successfully installed the Google Drive orchestration app, please have a look at the sample use case below to show how the app can be used efficiently.