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

# Gainsight OAuth 2.0 connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 for Gainsight in StackOne to allow users to link their accounts.

> [!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.

**1. Read the domain from the address bar**

Copy the host from the address bar into your Connector Profile.

<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`. Enter it into your Connector Profile.</li>
</ul>

## Create the OAuth application

The OAuth application gives StackOne 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** from your Connector Profile</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** into your Connector Profile.</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** into your Connector Profile.</li>
</ul>

## Find your tenant ID

The **Tenant ID** is needed only to publish events into Gainsight. A Gainsight admin can find it.

**1. Copy the Tenant ID from Application Settings**

Open the application settings in Gainsight.

<ul>
  <li>In Gainsight, navigate to **Administration > General > Application Settings**.</li>
  <li>Under **General Details**, copy the **Tenant ID** into your Connector Profile.</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/gainsight/guides/link-account/oauth-2-0.md).


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