> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Cloud Observability OAuth 2.0 (Multiple Companies) connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 (Multiple Companies) for Google Cloud Observability in StackOne to allow users to link their accounts.

> [!WARNING]
>
> Project Owner or Editor privileges in Google Cloud are required to complete this setup. The Google account that connects needs Logging and/or Monitoring Viewer (read) or Admin (write) on the target project.

Select Actions to adjust the guideSome actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.

Select all
Clear

ActionScope(s)

Loading actions...No actions match your search.

Dynamic Guide URL

Copy URL

Scopes Selected

<pre role="textbox" aria-readonly="true" tabIndex="0" />

Separator

Copy scopes

## Create a Google Cloud OAuth client

Set up a Google Cloud project with the Cloud Logging API and Cloud Monitoring API enabled and an OAuth client for StackOne.

**1. Create or select a project**

Sign in to your [Google Cloud Console](https://console.cloud.google.com/), then open the project picker at the top of the page.

<ul>
  <li>**New project:** Click **New project**, fill in **Project name**, **Organization** and **Parent resource**, then click **Create**. Select the new project in the project picker.</li>
  <li>**Existing project:** Select it in the project picker.</li>
</ul>

![Select a resource dialog listing the projects in the organization, with the New project button highlighted.](https://mintcdn.com/stackone-60/kjYQ8eLpf16EJPzK/connectors/googlecloudobservability/images/oauth2-setup-create-project.png?fit=max\&auto=format\&n=kjYQ8eLpf16EJPzK\&q=85\&s=fd262d696c7258dff37012c78f41eb00)

**2. Enable the Cloud Logging API and Cloud Monitoring API**

Open **APIs & Services** > **Library**.

<ul>
  <li>Search for `Cloud Logging API`.</li>
  <li>Click **Cloud Logging API**.</li>
  <li>Click **Enable**. If it shows **Manage**, it's already enabled.</li>
  <li>Repeat for `Cloud Monitoring API`.</li>
</ul>

![Product details page for the Cloud Logging API in the API Library, showing the API Enabled status with the Enable/Manage button highlighted.](https://mintcdn.com/stackone-60/kjYQ8eLpf16EJPzK/connectors/googlecloudobservability/images/oauth2-setup-enable-apis.png?fit=max\&auto=format\&n=kjYQ8eLpf16EJPzK\&q=85\&s=177097cb3fe16765b1e811f383d30296)

**3. Enter the app information**

Open **APIs & Services** > **OAuth consent screen** to open the Google Auth Platform dashboard.

<ul>
  <li>Click **Get started**. If the **OAuth Overview** page opens instead, open **Branding** from the sidebar.</li>
  <li>**App name**: A name that identifies this integration</li>
  <li>**User support email**: Email address for user inquiries</li>
  <li>Click **Next**.</li>
</ul>

![Branding page of the Google Auth Platform with the App information section, highlighting the App name and User support email fields (email redacted).](https://mintcdn.com/stackone-60/kjYQ8eLpf16EJPzK/connectors/googlecloudobservability/images/oauth2-setup-branding-info.png?fit=max\&auto=format\&n=kjYQ8eLpf16EJPzK\&q=85\&s=b90c820f5157d944d7551ca5323bb862)

**4. Select the audience**

Choose the user type for your application.

<ul>
  <li>**Internal**: Only users within your Google Workspace organization can authorize (no app verification required)</li>
  <li>**External**: Any Google account can authorize (requires app verification for production use)</li>
  <li>Click **Next**.</li>
</ul>

![Audience page of the Google Auth Platform with the User type section highlighted, showing the current type and the Make internal button.](https://mintcdn.com/stackone-60/kjYQ8eLpf16EJPzK/connectors/googlecloudobservability/images/oauth2-setup-select-audience.png?fit=max\&auto=format\&n=kjYQ8eLpf16EJPzK\&q=85\&s=2627706d81a67e87861f8adfc56d9e3f)

**5. Enter contact information**

Google sends notices about changes to your project to these addresses. If you opened **Branding**, the field is under **Developer contact information** on the same page.

<ul>
  <li>**Email addresses**: Email addresses for project notices</li>
  <li>Click **Next**.</li>
</ul>

**6. Accept the user data policy**

Review your settings.

<ul>
  <li>Agree to the Google API Services User Data Policy.</li>
  <li>Click **Create**.</li>
</ul>

**7. Add the scopes**

Enables actions: Create Alert Policy, Create Dashboard, Create Exclusion, Create Group, Create Log Metric, Create Notification Channel, Create Service, Create Service Level Objective, Create Sink, Create Uptime Check Config, Delete Alert Policy, Delete Dashboard, Delete Exclusion, Delete Group, Delete Log, Delete Log Metric, Delete Notification Channel, Delete Service, Delete Service Level Objective, Delete Sink, Delete Uptime Check Config, Get Alert Policy, Get Dashboard, Get Exclusion, Get Group, Get Log Metric, Get Metric Descriptor, Get Notification Channel, Get Service, Get Service Level Objective, Get Sink, Get Uptime Check Config, List Alert Policies, List Dashboards, List Exclusions, List Group Members, List Groups, List Log Entries, List Log Metrics, List Logs, List Metric Descriptors, List Monitored Resource Descriptors, List Notification Channels, List Service Level Objectives, List Services, List Sinks, List Time Series, List Uptime Check Configs, Send Notification Channel Verification Code, Test Auth (Cloud Logging), Test Auth (Cloud Monitoring), Update Alert Policy, Update Dashboard, Update Exclusion, Update Group, Update Log Metric, Update Notification Channel, Update Service, Update Service Level Objective, Update Sink, Update Uptime Check Config, Verify Notification Channel, Write Log Entries

In Google Auth Platform, open **Data Access**. Add `https://www.googleapis.com/auth/cloud-platform.read-only` and every scope listed.

<ul>
  <li>Click **Add or Remove Scopes**.</li>
  <li>Under **Manually add scopes** in the **Update selected scopes** side panel, paste each scope.</li>
  <li>Click **Add to table**.</li>
  <li>Click **Update**.</li>
  <li>On the **Data Access** page, click **Save**.</li>
</ul>

![Data Access page of the Google Auth Platform with the Add or remove scopes button highlighted above the list of configured scopes.](https://mintcdn.com/stackone-60/kjYQ8eLpf16EJPzK/connectors/googlecloudobservability/images/oauth2-setup-select-scopes.png?fit=max\&auto=format\&n=kjYQ8eLpf16EJPzK\&q=85\&s=04d324544c11d916230f5525f98281ce)

<ul>
  <li>
    [https://www.googleapis.com/auth/logging.admin](https://www.googleapis.com/auth/logging.admin)
  </li>

  <li>
    [https://www.googleapis.com/auth/logging.read](https://www.googleapis.com/auth/logging.read)
  </li>

  <li>
    [https://www.googleapis.com/auth/monitoring](https://www.googleapis.com/auth/monitoring)
  </li>

  <li>
    [https://www.googleapis.com/auth/monitoring.read](https://www.googleapis.com/auth/monitoring.read)
  </li>

  <li>
    [https://www.googleapis.com/auth/cloud-platform.read-only](https://www.googleapis.com/auth/cloud-platform.read-only)
  </li>
</ul>

**8. Create the OAuth client**

Open **APIs & Services** > **Credentials**.

<ul>
  <li>Click **Create credentials**.</li>
  <li>Select **OAuth client ID**.</li>
  <li>**Application type**: **Web application**</li>
  <li>**Name**: A name that identifies this OAuth client</li>
  <li>Under **Authorized redirect URIs**, click **Add URI**.</li>
  <li>Enter the **Callback URL** from your Connector Profile.</li>
  <li>Click **Create**.</li>
</ul>

![Create OAuth client ID form with Application type set to Web application, a Name filled in, the StackOne callback URL under Authorized redirect URIs, and the Create button highlighted.](https://mintcdn.com/stackone-60/kjYQ8eLpf16EJPzK/connectors/googlecloudobservability/images/oauth2-setup-create-oauth-form.png?fit=max\&auto=format\&n=kjYQ8eLpf16EJPzK\&q=85\&s=2c836f4e1ffa311f893f20a464c95a53)

**9. Copy the Client ID and Client Secret**

A dialog shows your **Client ID** and **Client Secret**.

<ul>
  <li>Copy the **Client ID** and **Client Secret** into your Connector Profile.</li>
</ul>

## Exempt the app from session control

Google Workspace administrators can enforce a **Google Cloud session control** window of 1 to 24 hours on Google Cloud OAuth scopes, which requires interactive re-authentication.

<ul>
  <li>**Never expires:** In the Google Admin console, open **Security** > **Access and data control** > **Google Cloud session control** and select **Session never expires**.</li>
  <li>**Trusted app:** In the Google Admin console, add this OAuth app to the trusted (exempted) apps list.</li>
</ul>

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/googlecloudobservability/guides/link-account/oauth-2-0-multiple-companies.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.