> ## 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.

# Connect Gainsight with OAuth 2.0 (Multiple Companies) – StackOne Hub

> Link a Gainsight account in the StackOne Hub using OAuth 2.0 (Multiple Companies). End-user guide to authorize the integration and start using Gainsight actions.

> [!WARNING]
>
> Only Super Admins can access OAuth Applications, and your org must have Connectors 2.0 (Horizon Experience). Each org can have up to three OAuth applications.

## Find your Gainsight domain

Your domain is the host in your browser's address bar when you are signed in to Gainsight.

<ul>
  <li>Format: `{company}.gainsightcloud.com`, or your custom domain</li>
  <li>Example: if your address bar shows `https://acme.gainsightcloud.com/v1/ui/home`, your **Domain** is `acme.gainsightcloud.com`</li>
</ul>

## Create the OAuth application

The OAuth application gives the connection its **Client ID** and **Client Secret**. Access is limited to the permissions of the user who connects.

**1. Create the application**

Sign in to Gainsight at `https://{domain}` as a Super Admin, then navigate to **Administration > User Management > Authentication** and open the **OAuth Applications** tab.

<ul>
  <li>Click **Add Application**.</li>
  <li>**Name**: `StackOne Integration`</li>
  <li>**Scope**: **Read/Write**</li>
  <li>Turn on the **Enable PKCE (Proof Key for Code Exchange)** toggle.</li>
  <li>**Callback URLs**: the **Callback URL** StackOne shows you</li>
  <li>If you select **Enforce Allowed IP Ranges**, add [StackOne's IP addresses](https://docs.stackone.com/gateway/concepts/connector-profiles.md#connection-issues-behind-a-firewall).</li>
  <li>Click **Add Application**.</li>
</ul>

**2. Copy the client secret**

The **Copy your client secret** popup shows the **Client Secret**.

<ul>
  <li>Click **Copy to clipboard**.</li>
  <li>Copy the **Client Secret** across.</li>
  <li>Click **I've saved the secret**.</li>
  <li>The Client Secret is shown only once and cannot be viewed again. If you lose it, regenerate it from the application.</li>
</ul>

**3. Copy the client ID**

Click the three-dots vertical menu next to the application.

<ul>
  <li>Select **View/Edit**.</li>
  <li>Copy the **Client ID** across.</li>
</ul>

## Publish events

The **Events Shared Secret** and **Tenant ID** are needed only to publish events into Gainsight. Skip this section if you will not publish events. Only a Gainsight admin can open the **Administration** pages they come from.

**1. Copy the events shared secret**

In Gainsight, navigate to **Administration > Events**.

<ul>
  <li>Click **Register As Publisher** if your org is not registered yet.</li>
  <li>Click the **show shared secret key** gear icon.</li>
  <li>Copy the **Events Shared Secret** across.</li>
</ul>

**2. Copy the tenant ID**

In Gainsight, navigate to **Administration > General > Application Settings**.

<ul>
  <li>Under **General Details**, copy the **Tenant ID** across.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


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