This article is a condensed version of the documentation referenced below describing how to set up the Transfer of Ownership Features for the Workflows Gmail connector.
-
Workflows Gmail connector cards:
- Add Delegate
- Add Send Alias
- Delete Delegate
- Delete Send Alias
- Forward Emails
- List Delegates
- Set Auto Reply
- Update User Gmail Settings
Google Cloud Platform
-
Create a new Google Cloud Project (an existing project can also be used).
-
Click on the Quickstart drop-down at the top of the navigation bar that displays the currently selected project, select an organization, and click New Project.
-
Enter the project name and click Create.
-
From the Quickstart drop-down at the top of the navigation bar, select the new project.
-
From the Project info panel on the Project Dashboard, click ADD PEOPLE TO THIS PROJECT.
-
Add the Google Workspace service account used to authorize the Workflows Gmail connection as a new principal with the Viewer role.
-
-
Navigation menu > APIs & Services > Library.
-
Search for and enable the Gmail API.
-
-
Navigation menu > IAM & Admin > Service Accounts.
-
Click CREATE SERVICE ACCOUNT.
-
Enter a name and description, and click DONE.
-
Click on the service account in the list of service accounts to edit it.
-
Navigate to the PERMISSIONS tab and click GRANT ACCESS.
-
Add the Google Workspace account used to authorize the Gmail connection as a New Principal.
-
Add the following roles to the principal, then click SAVE.
-
Service Account User;
-
Service Account Token Creator.
-
-
Navigate to the DETAILS tab and copy the Unique ID (the same as the OAuth 2 Client ID as seen from the list of service accounts).
-
Google Admin Console
-
Navigate to Security > Access data and control > API controls.
-
Click on MANAGE DOMAIN WIDE DELEGATION.
-
Click Add new to add a new API client.
-
Enter the Client ID that was copied from the service account created above.
-
Add the following scopes:
-
Click AUTHORIZE and the API client will be saved.
Workflows console
-
Create a new flow and add one of the Transfer of Ownership cards referenced in the Applies To section above.
-
The card options will include drop-downs for the Google Cloud Platform Project and Service Account, which should be populated with the project and service account created in the above steps.
-
Configure the card and verify it executes successfully.
Related References
- Authorize an Account for Transfer of Ownership Features
- Invoke Function in Google Cloud Functions Causes a "403 Forbidden" Error
