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 Service Account

Authorize SAP Build Process Automation to automate Google Applications with Google Authorization SDK

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
Céline Audin C Céline Audin March 4, 2024
Created by April 28, 2023
Contributors

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 authorize using Service Account.

What is a Service Account ?

Service account differs from user accounts and it will be used by a software application to make authorized API calls. The service account can also be authorized to access data on behalf of users in a domain without their consent by enabling Domain-wide delegation. The service accounts should be created and configured through Google Cloud Console before using the activity in SAP Build Process Automation. Refer to pre-requisites to Setup Service Account.


Step 1 Create an automation to authorize Google applications

Before you can authorize Google applications, you will need to create an automation.

  1. From the Lobby, choose Create.

    Create
    Create

  2. In the pop-up, select Build an Automated Process.

    Automated Process
    Automated Process

  3. Select Task Automation.

    Task Automation
    Task Automation

  4. In the Create a Task Automation project window, enter the project name: Google Workspace and as a description: A demo to automate Google Applications using Google SDK.

  5. Choose Create.

    Automated Process
    Automated Process

    You will be asked to configure your agent version.

  6. Select the agent version that is registered on your system.

    Configure Agent Version
    Configure Agent Version

    A pop-up window will prompt you to create an automation.

  7. In the name field enter Google Authorization.

  8. In the description field enter An automation to authorize Google.

  9. Choose Create.

    Create automation
    Create automation

    A new automation named Google Authorization will be successfully created. You will be navigated to the automation editor where you can start building your automation.

    Create automation
    Create automation

Step 2 Create environment variables
+
Step 3 Add the Google authorization SDK
+
Step 4 Authorize Google using service account
+
Step 5 Use the service account activity
+
Step 6 Test Google authorization
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. Create an automation to authorize Google applications 2. Create environment variables 3. Add the Google authorization SDK 4. Authorize Google using service account 5. Use the service account activity 6. Test Google authorization

Learn more →