This page describes how to set up authentication and permissions before creating
a Notion data store for use with Gemini Enterprise.

## Set up authentication and permissions

To connect Notion to Gemini Enterprise, you must create a Notion OAuth
integration. Notion integrations can be either *public* or *internal*. To
connect Gemini Enterprise, you must create a public integration.

> [!NOTE]
> **Note:** A public Notion integration isn't visible or accessible outside your organization unless you submit it for publishing. You don't need to publish your integration in order to connect Notion to Gemini Enterprise.

### Create a Notion integration

1. Navigate to the
   [Notion Integrations dashboard](https://www.notion.so/profile/integrations).

2. Click **New integration**. Fill in the following fields:

   1. For **Associated workspace**, select your Notion workspace.

   2. In the **Type** list, select **Public**.

3. Fill in required organizational fields such as **Company name** ,
   **Website** , and **Privacy policy**.

4. In the **OAuth domain \& URIs** section, enter the OAuth redirect URIs for
   Gemini Enterprise:

   1. In the **Redirect URIs** field, enter
      `https://vertexaisearch.cloud.google.com/console/oauth/default_oauth.html`,
      and press <kbd>Enter</kbd>.

   2. Again, in the **Redirect URIs** field, enter
      `https://vertexaisearch.cloud.google.com/oauth-redirect`, and press
      <kbd>Enter</kbd>.

5. Click **Save**.

### Configure permissions and get credentials

1. In the settings page for your new integration, under **Configuration** , copy
   the **OAuth Client ID** and **OAuth Client Secret** values.

2. In the **Capabilities** section, under **Content Requests** , select the
   **Read content** capability.

3. Click **Save changes**.

You can now create a data store to connect Notion to Gemini Enterprise. For more
information, see
[Set up a Notion data store](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/notion/data-store.md.txt).