SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Authorize SAP Build Process Automation with Google Authorization SDK Using Google Oauth Client ID

Authorize SAP Build Process Automation to automate Google Applications with Google Authorization SDK using Google Oauth Client ID

Overview

🎓 beginner 20 min. SAP Build Process AutomationBeginnerSAP Business Technology PlatformFree Tier

You will learn

  • How to use the authorization mechanisms supported by the Google Authorization SDK
  • How to use Select Google Authentication activity
  • How to use Authorize Google (OAuth Client ID) activity
Céline Audin C Céline Audin March 4, 2024
Created by April 28, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

SAP Build Process Automation enables users to automate Google Workspace products such as Gmail, Google Drive, Google Sheets, Google Docs, Google Calendar and other services such as Google Cloud Storage, Document AI and Vision AI. Any company which is using Google Workspace instead of MS Office products, can use the Google Workspace SDK to automate the workspace products. In order to automate Google workspace products, you have to be authorized. There are three authorization mechanisms that Google supports:

  • Service Account
  • OAuth
  • Workflow Identity Federation

SAP Build Process Automation supports Service Account and OAuth. In this tutorial, you will build an automation to authorize using OAuth and send an email using Gmail activities.

There are two ways to authorize using OAuth: either by registering the authentication on the Desktop Agent 3.0 or by getting authorization for a Google account.

What is OAuth?

OAuth 2.0 is an industry standard, token-based user authorization mechanism. The client must be registered through Google cloud console and the JSON credential file which contains Client ID and Client secret should be downloaded to a safe location. Refer to pre-requisites to Setup OAuth Client.


Step 1 Authorize Google using OAuth Client ID

After successful completion of setting the OAuth client ID as mentioned in the pre-requisites, you would have downloaded the OAuth credential file in JSON format and saved it on your local machine.

Step 2 First option - Use OAuth Client ID authorization mechanism on Desktop Agent 3.0.
+
Step 3 Create an automation to authorize Google applications with Desktop Agent 3.0.
+
Step 4 Add the Google authorization SDK
+
Step 5 Use Select Google Authentication activity
+
Step 6 Add Google Workspace SDK
+
Step 7 Create an environment variable
+
Step 8 Build an automation
+
Step 9 Test the automation
+
Step 10 Second option - Create an automation to authorize Google applications
+
Step 11 Create environment variables
+
Step 12 Add the Google dependencies
+
Step 13 Use the Authorize Google (OAuth Client ID) activity
+
Step 14 Test Google authorization
+
Step 15 Create an environment variable
+
Step 16 Build and test the automation
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 16
1. Authorize Google using OAuth Client ID 2. First option - Use OAuth Client ID authorization mechanism on Desktop Agent 3.0. 3. Create an automation to authorize Google applications with Desktop Agent 3.0. 4. Add the Google authorization SDK 5. Use Select Google Authentication activity 6. Add Google Workspace SDK 7. Create an environment variable 8. Build an automation 9. Test the automation 10. Second option - Create an automation to authorize Google applications 11. Create environment variables 12. Add the Google dependencies 13. Use the Authorize Google (OAuth Client ID) activity 14. Test Google authorization 15. Create an environment variable 16. Build and test the automation

Learn more →