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

# Gemini Enterprise - Make StackOne Available

> Allow your users to connect to work systems with StackOne.

![An IT admin adds StackOne to the Gemini Enterprise app, bringing Linked Accounts from many providers. Each user then connects with their own accounts: an HR manager uses Gemini Enterprise with Workday, Greenhouse and BambooHR, and a sales manager uses Gemini Enterprise with Salesforce, HubSpot and Gmail.](https://mintcdn.com/stackone-60/-TtgYTnFntS-WJUr/images/ai-platforms/google/admin-setup.svg?fit=max\&auto=format\&n=-TtgYTnFntS-WJUr\&q=85\&s=6bc83f95f2cc69f4e3186456089ddc43)

Make StackOne available to everyone who uses your Gemini Enterprise app. Each person then signs in with their own StackOne login and reaches only the systems they've been given access to in StackOne.

## Before you start

This guide covers the Standard, Plus, Pay-as-you-go and Frontline editions. It doesn't cover the Business edition, which has [its own setup steps](https://support.google.com/g/answer/17106276).

In Google Cloud, you need the **Discovery Engine Editor** role, or the broader **Gemini Enterprise Admin** role, on the project that holds your Gemini Enterprise app. Changing organization policies needs the **Organization Policy Administrator** role, which someone else may hold.

Gemini Enterprise asks for a client ID and secret, so you create an OAuth client for it in StackOne first. You also sign in to StackOne yourself during setup, so Gemini Enterprise can list the actions. In StackOne, you need the **Project Admin** role to create the OAuth client, plus:

* A StackOne [project](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md) you are a member of.
* A [connector profile](https://docs.stackone.com/connect/managing-connectors/connector-profiles.md) in the project for each provider the client should reach, with the actions you want exposed enabled.
* (Optional) A [linked account](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md) for each provider. Accounts can also be linked during the consent flow.

## Add StackOne to your Gemini Enterprise app

**1. Create an OAuth client in StackOne**

1. In the StackOne dashboard, go to **Project Settings → MCP OAuth Clients → Create OAuth Client**.

2. Set **Name** to `Gemini Enterprise` and leave **Client type** set to `Confidential`.

3. Under **Common integrations**, click **Add** next to **Gemini Enterprise**. This fills in the redirect URI:

   ```text theme={null}
   https://vertexaisearch.cloud.google.com/oauth-redirect
   ```

4. Click **Generate**, then copy the client ID and secret. The secret is shown only once.

For more on these clients, see [Clients requiring Client ID and Secret](https://docs.stackone.com/ai-platforms/mcp-server.md#clients-requiring-client-id-and-secret).

**2. Allow custom MCP servers in Google Cloud**

An organization policy blocks custom MCP servers in Gemini Enterprise until you override it:

1. In the Google Cloud console, open the **Organization Policies** page and select the project that holds your app.
2. Filter for `Disable custom MCP server connector for Gemini Enterprise` and click the policy.
3. Click **Manage policy**, then select **Override parent's policy**.
4. Add a rule, turn enforcement off, and click **Set Policy**.

The policy's status now shows **Not enforced**.

![The Google Cloud policy page for Disable custom mcp server connector for gemini enterprise, with the Status row reading Not enforced](https://mintcdn.com/stackone-60/-TtgYTnFntS-WJUr/images/ai-platforms/google/gemini-enterprise-policy-not-enforced.png?fit=max\&auto=format\&n=-TtgYTnFntS-WJUr\&q=85\&s=deb5994f1fe57f77dbabf824d83c9464)

If your project uses VPC Service Controls or is listed in the enforced projects of these two policies, update them too:

* **Restrict egress domains for data connectors**: add `mcp.stackone.com` and `idp-api.stackone.com` to the allowed domains.
* **Restrict allowed data sources for data connectors**: add `custom_mcp`.

**3. Add StackOne as a custom MCP server**

1. In the Google Cloud console, go to the **Gemini Enterprise** page, click **Apps**, then click your app.

2. Click **Connected data stores**, then **New data store**.

3. Search for `Custom MCP Server`, then click **Add MCP server** on the **Custom MCP Server** card.

   ![The Gemini Enterprise Create data store page in the Google Cloud console, with Custom MCP server in the search box and the Custom MCP Server card showing an Add MCP server link](https://mintcdn.com/stackone-60/-TtgYTnFntS-WJUr/images/ai-platforms/google/gemini-enterprise-add-mcp-server.png?fit=max\&auto=format\&n=-TtgYTnFntS-WJUr\&q=85\&s=1f9a481e2d0df490c443e3d7bf9b555b)

4. Under **Authentication settings**, select **OAuth 2.0** and fill in:

   | Field | Value |
   | - | - |
   | **MCP Server URL** | `https://mcp.stackone.com/mcp` |
   | **Authorization URL** | `https://idp-api.stackone.com/api/auth/oauth2/authorize` |
   | **Token URL** | `https://idp-api.stackone.com/api/auth/oauth2/token` |
   | **Client ID** | The client ID from StackOne |
   | **Client Secret** | The secret from StackOne |
   | **Scopes** | `mcp offline_access` |

   Tick **Enable PKCE Support** and leave the other fields as they are.

5. Click **Verify Auth**.

**4. Sign in and authorize**

Gemini Enterprise asks you to sign in to StackOne with your own login. This sign-in is for setup. Each user still authorizes StackOne with their own login.

Sign in, pick the project and the [linked accounts](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md) the connector should reach, then **Authorize**.

> [accordion] Walk through the consent screen
>
> 1. **Sign in to StackOne.** If you are already signed in to the dashboard you skip straight to the next step.
> 2. **Check where the connection returns.** The line under the client's logo shows where it goes after you approve. If it names localhost or an app on this device, only continue if you started the connection from that client.
> 3. **Select a project.** Select the project you would like to associate the connection with. If you belong to one project, this step is skipped.
> 4. **Select accounts and access.** Select the linked accounts the client can use, and choose how much it can do in each: read, write, full access, or pick individual actions. To link a new account, click **Link account**. When the project has [MCP Events](https://docs.stackone.com/connect/mcp-events.md) on, each account also lists its events, and all of them are granted unless you untick some.
> 5. **(Optional) Load tools when needed.** On by default, and the toggle that puts the connection into [Advanced Tool Search](https://docs.stackone.com/optimize/advanced-tool-search.md). Leave it on for large action sets. Turn it off to hand the agent every selected action up front.
> 6. **Authorize.** Completes the connection; you can return to your client.
>
> ![StackOne authorization screen listing organizations, with a project selected inside one of them](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/oauth-consent-select-project.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=69d4694c8ea854c52ec62fc1bbe0825a)
>
> Select a project
>
> ![StackOne authorization screen showing two linked accounts, Linear and Open-Meteo, both selected, above the Load tools when needed toggle](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/oauth-consent-select-accounts.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=66ef4eb4d8bf6e5246e5f01ec959c187)
>
> Select accounts
>
> ![An expanded linked account showing individual actions with toggles, descriptions, and category tags](https://mintcdn.com/stackone-60/RgaE_4ZxFuvAQ6gS/images/ai-platforms/oauth-consent-select-actions.png?fit=max\&auto=format\&n=RgaE_4ZxFuvAQ6gS\&q=85\&s=c86b615e0f55cd43236e38142c1ebca5)
>
> Toggle actions
>
> > [!NOTE]
> >
> > If you see a sentence where the **Load tools when needed** toggle should be, an admin has already settled it for the whole project. See [project settings](https://docs.stackone.com/optimize/advanced-tool-search.md#setting-it-for-a-whole-project).

Leave **Load tools when needed** on.

Back in the Google Cloud console, the form shows **Successfully logged in.** Click **Continue**.

![The MCP Server Configuration form after Verify Auth, showing a Successfully logged in message above a Continue button](https://mintcdn.com/stackone-60/-TtgYTnFntS-WJUr/images/ai-platforms/google/gemini-enterprise-verify-auth-signed-in.png?fit=max\&auto=format\&n=-TtgYTnFntS-WJUr\&q=85\&s=f4ffaf849f230d2a0a6a66ed22919f42)

**5. Create the data store**

1. Leave **Advanced options** as they are and click **Continue**.
2. Under **Location of your data connector**, choose a location from the **Multi-region** list.
3. Set **Your data connector name** to `StackOne`. This is the name your users look for in Gemini Enterprise.
4. Click **Create**.

Open the new data store and wait for its state to change from **Creating** to **Active**.

**6. Turn on StackOne's actions**

Every action starts turned off.

1. In the StackOne data store, click **Actions**, then **Reload custom actions**. Gemini Enterprise signs in again and lists StackOne's tools.
2. Select the tools your users need, keeping the total at 100 or fewer.
3. Click **Enable actions**.

If you turned **Load tools when needed** off, the list holds every action you selected on the consent screen. Select the ones your users need. Google says to keep no more than 100 actions enabled in a data store.

![The Actions page of a custom MCP server data store, with the Reload custom actions button and a list of actions with their status](https://mintcdn.com/stackone-60/-TtgYTnFntS-WJUr/images/ai-platforms/google/gemini-enterprise-reload-custom-actions.png?fit=max\&auto=format\&n=-TtgYTnFntS-WJUr\&q=85\&s=25b4f5558981d1a8e7e6ed8b92bcb25c)

StackOne is now in this one app. To use it in another Gemini Enterprise app, add it there too. An app in another project also needs the policy override in that project.

## Roll it out

StackOne is now available for your users in Gemini Enterprise. Make sure the following is ready before rolling out:

* **Add users.** Invite or provision users via SSO/SCIM. See [Manage Team](https://docs.stackone.com/secure/identity-and-access/manage-team/overview).
* **Create groups.** Organize teams into [groups](https://docs.stackone.com/secure/identity-and-access/roles-and-groups/groups.md) to control which systems each team reaches.
* **Set up connectors.** Define [Connector Profiles](https://docs.stackone.com/connect/managing-connectors/connector-profiles.md) to scope provider actions for specific functions.
* **Link accounts.** Link shared company accounts, or let users link their own accounts. See [Linking Accounts](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md).

Each user also needs a Gemini Enterprise license for the app's project and location, and the **Gemini Enterprise User** role on the project. To limit someone to certain apps, replace that project role with **Gemini Enterprise Restricted User**, then grant **Gemini Enterprise User** on each of those apps. Google supports the app grant only [through the API](https://docs.cloud.google.com/gemini/enterprise/docs/iam-policy-for-apps).

Then send users this guide:

> [card] [Gemini Enterprise Organization User Setup](https://docs.stackone.com/ai-platforms/google/gemini-enterprise/connect-stackone.md)
>
> For people in your organization connecting StackOne in Gemini Enterprise.

## Keep the action list current

With **Load tools when needed** on, Gemini Enterprise searches StackOne for actions as it needs them, so action changes in StackOne apply without a reload.

If you turned it off, Gemini Enterprise works from the actions it listed the last time someone clicked **Reload custom actions**. When the actions available in StackOne change, open the StackOne data store, click **Actions**, then **Reload custom actions**, and turn on any new ones.

## Sign in again

StackOne sign-ins last 90 days. If the setup sign-in stops working, open the StackOne data store, click **Actions**, then **Reload custom actions** to sign in again.


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