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

## Set up authentication and permissions

To connect Dropbox to Gemini Enterprise, you must create an app in the Dropbox
DBX Platform.

### Create and configure a Dropbox app

1. Navigate to the
   [Dropbox App Console](https://www.dropbox.com/developers/apps).

2. Click **Create app**. Fill in the following fields:

   1. For **Choose an API** , select **Scoped access**.

   2. For **Choose the type of access you need** , select **Full Dropbox**.

   3. In the **Name your app** field, enter a name for your Dropbox app.


      ![Enter the details of your Dropbox app](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/create-dropbox-app.png)
   4. Select the **I agree to Dropbox API Terms and Conditions** checkbox.

   5. Click **Create app**.

3. In the details page for your new app, click the **Settings** tab. Configure
   the following settings:

   1. For the **Development users** status, click **Enable additional users** . A **Limit raised to 500 users** dialog opens and displays a message that your app can link to up to 500 users.

   2. Click **Okay**.

   3. Copy the **App key** and **App secret**.

   4. For the **OAuth 2** field, add
      `https://vertexaisearch.cloud.google.com/console/oauth/default_oauth.html`
      in the **Redirect URIs** field.

   5. Click **Add**.

   6. Enter `https://vertexaisearch.cloud.google.com/oauth-redirect` in the
      **Redirect URIs** field.

   7. Click **Add**.

      - `https://vertexaisearch.cloud.google.com/console/oauth/default_oauth.html`

      - `https://vertexaisearch.cloud.google.com/oauth-redirect`


   ![Configure settings for your Dropbox app](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/dropbox-app-settings.png)
4. Click the **Permissions** tab. In the **Individual Scopes** section, select
   the following scopes:

   - In the **Account Info** section, select the **account_info.read** checkbox.

   - In the **Files and folders** section, select the **files.metadata.read**
     checkbox and the **files.content.read** checkbox.


   ![Select scopes for your Dropbox app](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/dropbox-images/dropbox-app-permissions.png)
5. Click **Submit**.