Using GSuite activities with Service Account Authentication Type
Description: Steps to Setup Service Account Key authentication mechanism for using GSuite activities are listed below.
This type of authentication allows authentication at the backend using Robots instead of prompting the user to authenticate the token
A service account key is a special type of Google account that belongs to the application instead of to an individual end-user. The application calls Google APIs on behalf of the service account, so users are not directly involved.
Steps:
- Login to Google Cloud Platform https://console.cloud.google.com
- Go To My project-> Create new project
- Go to Library
- Select the required APIs and enable them like Gmail, Excel, Drive, etc. according to the Project requirements
- Go to the Credential Section
- Click on 'Manage Service Accounts'.
- Click on the 3 dots and click on Create Service account
- Add a name and click on Create and continue
- Select the role as Owner in next step
- After clicking on continue, the below window will pop up. By default, Show Inherited Permissions will be checked, keep it as is (checked)
- Click on Done
- Now, open the Service account
- Go to Keys section and Click on Add key
- Create new key and Select the P12 key
- The private key will be saved to your local and the password will be "notasecret"
- Now, In Gsuite scope property section, add in the Key path and choose P12 as key
- Add Service account email paramter from below
With this, Gsuite authentication will be authenticated in the backend and is suitable for Unattended automation.