Activities
latest
false
Banner background image
Productivity Activities
Last updated May 14, 2024

Set up applications in Google Cloud

Before using the Google Workspace classic activities, you must configure your applications using the Google Cloud Platform.

There are two configuration steps:

  1. Enable APIs - This step enables automation by granting API access to your Google Workspace applications.
  2. Create credentials - This specifies the authentication type used to interact with your enabled APIs.

Enable APIs

Note: The steps listed below are sourced from Enable and disable APIs in the Google API Console Help documentation.
  1. Sign in to the Google Cloud Platform using your personal, work, or school Google G Suite account.
  2. In the top menu bar, after Google Cloud Platform, select the project you want to use for your automation project.

    • If you don't have a project, create one by following the Creating and Managing Projects instructions in the Google Cloud documentation.



  3. Open the menu in the top navigation bar.
  4. Hover over APIs & Services (showing a menu of options) and select Library (opening the API Library).



  5. From the API Library, go to the G Suite section.
  6. Click the application you want to enable APIs for (e.g., Google Drive API).

    • The APIs supported by the Google Workspace Activities Package are: Google Drive API, Google Calendar API, GMail API, Google Sheets API, and Google Docs API.



  7. From the selected application API page, click Enable.



  8. Repeat steps 5-6 to enable APIs for the remaining applications.

    • If you want the ability to use all of the Google Workspace activities, enable APIs for Google Drive API, Google Calendar API, GMail API, Google Sheets API, and Google Docs API.

You're done! Now, let's create your credentials to access the enabled APIs.

Create credentials

Follow the steps listed below to create credentials for your project.

  1. From your project APIs & Services page (Google Cloud Platform> Project > APIs & Services), click Credentials in the left-hand navigation panel.



  2. After the Credentials page opens, click Create credentials and select the type of credentials used for your application.

    Note:

    You should consult your IT department to determine the type of credentials you should use for your project. For more information about the differences between the credential types, see Authentication Overview in the Google Cloud documentation.

    For information about each credential type, see the details below.

    • API key

    An API key is the simplest authentication mechanism but can be used only with the Google Sheets activity.

    For more information about API Keys, see Using API Keys in the Google Cloud Documentation.

    • OAuth client ID

    Please note that when creating the Credential, its type should be "Other".

    The OAuth Client ID method works with all Google Workspace services, however, it's recommended for attended automation because user consent is required before the robot can access your Google account (for more information, see User consent in the Google Help documentation).

    For more information about OAuth client ID, see Using OAuth 2.0 to Access Google APIs in the Google Cloud Documentation. For step-by-step instructions, see Setting up OAuth 2.0 in the Google Help documentation.

    • Service account key

    A service account key is a special type of Google account that belongs to your application instead of to an individual end-user. Your application calls Google APIs on behalf of the service account, so users aren't directly involved.

    For more information about Service account keys, see Understanding service accounts in the Google Cloud Documentation.

  3. Follow the applicable instructions (listed below) to add your selected credentials.

You're done!

  • Enable APIs
  • Create credentials

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.