This page describes how to create a data store, and connect Dropbox to
Gemini Enterprise.

> [!NOTE]
> **Note:** To enforce data source access control and secure data in Gemini Enterprise, ensure that you have [configured your identity provider](https://docs.cloud.google.com/gemini/enterprise/docs/configure-identity-provider.md.txt).

## Before you begin

Before you set up your Dropbox data store, do the following:

1.
   Grant the Discovery Engine Editor role (`roles/discoveryengine.editor`). This role is required for the user to create the data store. To grant this role, do the following:

   1. In the Google Cloud console, go to the **IAM** page.

      [Go to IAM](https://console.cloud.google.com/iam-admin/iam)
   2. Locate the user account and click edit **Edit**.
   3. Grant the `Discovery Engine Editor` role to the user. For more information, see [IAM roles and permissions](https://cloud.google.com/gemini/enterprise/docs/access-control).

   <br />

2. Create an app in the Dropbox App Console, obtain the authentication credentials, and set the required scopes. For more information, see [Dropbox configuration](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/dropbox/config.md.txt).

## Create the Dropbox data store

To create a Dropbox data store, do the following:

1. In the Google Google Cloud console, go to the **Gemini Enterprise** page.

   [Gemini Enterprise](https://console.cloud.google.com/gemini-enterprise/)
2. Select or [create](https://cloud.google.com/resource-manager/docs/creating-managing-projects) a Google Cloud project.

3. In the navigation menu, click **Data stores**.

4. Click **Create data store**.

5. On the **Select a data source** page, enter *Dropbox* into the search field.
   The Dropbox card displays.

6. Click Select.


   ![Select the Dropbox data source](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/select-source.png)
7. In the **Data** section, fill in the following fields:

   1. For the **Connector mode** field, select **Federated search** and click
      **Continue**.

   2. Under **Authentication settings**, enter the values you copied when you
      created an app in the Dropbox App Console:

      - For **Client ID** , enter the Dropbox app's **App key**.

      - For **Client Secret** , enter the Dropbox app's **App secret**.

      For more information about creating an app in the Dropbox App Console, see
      [Dropbox configuration](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/dropbox/config.md.txt).


      ![Provide your client ID and client secret](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/authentication-settings.png)

      Click **Login**.
   3. Click **Continue**.

   4. In the **Entities to search** section, select the entity types that you
      want Gemini Enterprise to search.


      ![Select entities to include in search](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/entities.png)

      Click **Continue**.
8. In the **Actions** section, select the actions that you want users to be able
   to perform in their Dropbox accounts using the Gemini Enterprise assistant.


   ![Select actions to enable for the connector](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/actions.png)

   > [!NOTE]
   > **Note:** If you skip adding actions in this step, you can add them later. For more information, see [Add actions](https://docs.cloud.google.com/gemini/enterprise/docs/manage-actions#add-actions).

   To view and manage the list of actions, see [View and manage actions](https://docs.cloud.google.com/gemini/enterprise/docs/manage-actions).
9.
   If the create data store flow shows an **Advanced options** section, you can select the **Enable Static IP Addresses** checkbox within it. This ensures the data store uses a fixed set of IP addresses for outbound traffic, suitable for allowlisting on the source system. For more information, see [Configure static IP egress](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/configure-static-ip-egress.md.txt).

10.
    In the **Configuration** section:

    1. From the **Multi-region** list, select the location for your data connector.
    2. In the **Your data connector name** field, enter a name for your connector.
    3. If you selected `us` or `eu` as the location, configure the **Encryption settings** :
       - Optional: If you haven't configured single-region keys, click **Go to settings page** to do so. For more information, see [Register a single-region key for third-party connectors](https://docs.cloud.google.com/gemini/enterprise/docs/cmek.md.txt#third-party-connectors-key-registration).
       - Select **Google-managed encryption key** or **Cloud KMS key**.
       - If you selected **Cloud KMS key** :
         - In the **Key management type** list, select the appropriate type.
         - In the **Cloud KMS key** list, select the key.

       For more information, see [Customer-managed encryption keys](https://docs.cloud.google.com/gemini/enterprise/docs/cmek.md.txt).

    <br />


    ![Select a location and enter a name for the data store](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/configuration.png)

    Click **Continue**.
11.
    In the **Billing** section, select **General pricing** or **Configurable pricing** . For more information, see [Verify the billing status of your projects](https://cloud.google.com/billing/docs/how-to/verify-billing-enabled) and [Licenses](https://docs.cloud.google.com/gemini/enterprise/docs/licenses.md.txt).


    ![Select a pricing model](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/billing.png)

On the **Data Stores** page, click your data store name to see the status. After
the data store state changes from **Creating** to **Active**, the Dropbox data
store is ready to be used.

After creating the data store, do the following before running any queries:

1. [Create an app](https://docs.cloud.google.com/gemini/enterprise/docs/create-app.md.txt).

2. [Connect the app](https://docs.cloud.google.com/gemini/enterprise/docs/connect-existing-data-store) to the
   Dropbox data store.

3. [Authorize](https://docs.cloud.google.com/gemini/enterprise/docs/create-app.md.txt#user-authorization)
   Gemini Enterprise to connect to Dropbox.

For information about the permissions required to perform a search, see
[Minimum permissions](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/dropbox.md.txt#minimum-permissions-actions).


## Data handling and query execution

This section describes how Gemini Enterprise manages your query and the privacy implications of using the federated data store.

### Query execution

After you authorize Dropbox and send a search query to Gemini Enterprise:

- Gemini Enterprise sends your search query directly to the Dropbox API.
- Gemini Enterprise blends the results with those from other connected data sources and displays a comprehensive search result.

### Data handling

When using third-party federated search, the following data handling rules apply:

- Your query string is sent to the third-party search backend (Dropbox API).
- These third parties may associate queries with your identity.
- If multiple federated search data sources are enabled, the query might be sent to all of them.
- After the data reaches the third-party system, it is governed by that system's terms of service and privacy policies.

> [!NOTE]
> **Note:** To improve accuracy, an LLM may rewrite your query before it is sent to Dropbox. This rewritten query can incorporate information from your session's query history. As a result, parts of your query history might also be included in the query sent to the Dropbox API.

<br />

## What's next

- To provide a user interface for querying your data,
  [create an app](https://docs.cloud.google.com/gemini/enterprise/docs/create-app.md.txt) and
  [connect it to the Dropbox data store](https://docs.cloud.google.com/gemini/enterprise/docs/connect-existing-data-store).

- To view and manage the list of actions, see [View and manage actions](https://docs.cloud.google.com/gemini/enterprise/docs/manage-actions).

- To preview how your search results appear after your app is set up, see
  [Get search results](https://docs.cloud.google.com/gemini/enterprise/docs/preview-search-results.md.txt).

- To enable alerts for the data store, see
  [Configure alerts for third-party data stores](https://docs.cloud.google.com/gemini/enterprise/docs/configure-periodic-data-alerts).