Perform operations on events in Google calendar.
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:
Get Event By Id
Add Attendees To Event
Remove Attendees From Event
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 i.e. project owner, 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 Admin SDK
Enable Admin SDK API access
Enable Admin SDK
C. Assign Oauth Scopes for Google API:
Login to GSuite admin console using this link.
Go to Admin console Homepage
Then “Security” > “API controls” > Under “Domain wide delegation” section > “Manage Domain Wide Delegation” > Add ne
Enter the client ID of the service account or OAuth2 client ID of the app/client ID of the service account credential which was created in Prerequisite(A).
The client ID is present in the JSON file downloaded in Prerequisite(A) point 7.
Under OAuth Scope, add each scope that the application can access, as mentioned in Prerequisites(D) below.
D. Oauth Scopes
https://www.googleapis.com/auth/calendar.readonly, https://www.googleapis.com/auth/calendar, https://www.googleapis.com/auth/calendar.events.readonly, https://www.googleapis.com/auth/calendar.events
App Installation Parameters
The first three parameters are present in the JSON file downloaded in Prerequisite(A) point 7
Private Key Id
Now that you've successfully installed the Google Calendar orchestration app, please have a look at the sample use case below to show how the app can be used efficiently.