# Set up OAuth applications in Google Cloud

> To authenticate through Google Workspace Scope with a Custom OAuth Client or to use the Bring your own OAuth 2.0 app authentication for Integration Service connectors, you must configure your applications using the [Google Cloud Platform](https://console.cloud.google.com/).

To authenticate through Google Workspace Scope with a Custom OAuth Client or to use the Bring your own OAuth 2.0 app authentication for Integration Service connectors, you must configure your applications using the [Google Cloud Platform](https://console.cloud.google.com/).

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.

:::note
This procedure was documented in an older version of the Google Cloud Platform. The user interface may have suffered minor changes in the meantime.
:::

## Enable APIs

1. Sign in to the [Google Cloud Platform](https://console.cloud.google.com/) 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](https://cloud.google.com/resource-manager/docs/creating-managing-projects) instructions in the Google Cloud documentation.

![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-181260-7ba39dae.webp)
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).

![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-187718-cbfd4a65.webp)
5. From the **API Library**, go to the **G Suite** section.
6. Select the application you want to enable APIs for (e.g., **Google Drive API**).
   * The APIs supported by the Google Workspace activity package are: **Google Drive API**, **Google Calendar API**, **Gmail API**, **Google Sheets API**, **Google Docs API**, **Google Tasks API**, **Google Forms API**.

![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-179156-2c2622f1.webp)
7. From the selected application API page, select **Enable**.

![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-179968-9981fc8a.webp)
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**, **Google Docs API**, **Google Tasks API**, **Google Forms API**.

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

## Create credentials

:::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](https://cloud.google.com/docs/authentication/) in the Google Cloud documentation.
:::

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

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

![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-179188-cf0734d4.webp)
2. After the **Credentials** page opens, select **Create credentials** and select the type of credentials used for your application. For information about each credential type, see the details below.
   * **API key** - An API key is the simplest authentication mechanism.
     + For more information about API Keys, see [Using API Keys](https://cloud.google.com/docs/authentication/api-keys) in the Google Cloud Documentation.
   * **OAuth Client ID** - When creating the Credential, its type should be "Desktop" (if you're using a private app in Google Workspace Scope) or "Web" (if you're using a private app in Integration Service).
     + 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 details, see [User consent](https://support.google.com/googleapi/answer/6158849?hl=en&ref_topic=7013279#userconsent) in the Google Help documentation.
     + For more information about OAuth client ID, see [Using OAuth 2.0 to Access Google APIs](https://developers.google.com/identity/protocols/OAuth2) in the Google Cloud Documentation. For step-by-step instructions, see [Setting up OAuth 2.0](https://support.google.com/googleapi/answer/6158849?hl=en&ref_topic=7013279) 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](https://cloud.google.com/iam/docs/understanding-service-accounts) in the Google Cloud Documentation.
3. Follow the applicable instructions to add your selected credentials:
   * [API key](https://cloud.google.com/docs/authentication/api-keys#creating_an_api_key)
   * [OAuth Client ID](https://support.google.com/googleapi/answer/6158849?hl=en&ref_topic=7013279)
   * [Service account key](https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account)

You're done!
