Connect a Dropbox data source
After you set up authentication and store your credentials in an AWS Secrets Manager secret, create the Dropbox data source in your knowledge base. This page describes how to create the data source with the AWS Management Console or the API, followed by a reference for the connector parameters you can configure.
Complete authentication setup first. See Set up authentication for Dropbox. You need the secret ARN and the
authentication type (OAUTH2 or TEAM_ADMIN) that the
secret's refresh token was issued for.
Create the data source
Connector parameters
The data source configuration uses the following connector parameters. Within
connectorParameters, set both type and
connectorType to DROPBOX and set version
to 1. For the fields that wrap connectorParameters (such as
deletionProtectionConfiguration and
mediaExtractionConfiguration), see Connect a data source.
If you omit aclEnabled, it defaults to true for
TEAM_ADMIN and to false for OAUTH2.
Because ACL configuration is permanent after the data source is created, set
aclEnabled explicitly so the data source has the access-control
behavior you intend. For details, see Document-level access controls.
The following table describes the connectionConfiguration fields.
| Field | Required | Description |
|---|---|---|
secretArn |
Yes | The ARN of the AWS Secrets Manager secret containing your
clientId, clientSecret, and
refreshToken. |
authType |
Yes | The authentication type: OAUTH2 (one user's
Dropbox) or TEAM_ADMIN (your Dropbox team). It must
match the kind of refresh token in the secret. See Authentication methods. |
Dropbox has no per-tenant host, so the connection configuration has no host URL.
The following table describes the dataEntityConfiguration fields,
which control the content that a team crawl covers.
dataEntityConfiguration is required but can be empty. Each field
defaults to true when omitted. These fields apply to
TEAM_ADMIN only; with OAUTH2, leave
dataEntityConfiguration empty.
| Field | Required | Description |
|---|---|---|
crawlMemberDrives |
No | Whether to crawl team members' folders, including folders shared
with those members. Use inclusionUserEmailAddresses and
exclusionUserEmailAddresses to choose which
members. |
crawlTeamFolders |
No | Whether to crawl team folders. |
The following table describes the optional filterConfiguration
fields, which scope the crawl. Every filter applies on top of the others
(AND).
| Field | Required | Description |
|---|---|---|
inclusionFolderPaths |
No | A list of up to 350 folder paths to crawl (for example,
/Finance/Reports/). Every file under each folder is
crawled, at any depth. Each path starts and ends with /
and has 3–1,024 characters; / alone is not
accepted (omit the path filters to crawl everything). The trailing
/ means /HR/ matches only the
HR folder, not a sibling folder such as
/HR2/. Paths match case-insensitively on whole path
components. With OAUTH2, paths are in the user's
Dropbox; if the user has an individual Dropbox account, start each
path with the user's member folder name, as described in Folder paths for
individual Dropbox accounts. With TEAM_ADMIN,
each path is looked up in the Dropbox of every team member in
scope. |
inclusionUserEmailAddresses |
No | TEAM_ADMIN only. A list of up to 100 team member
email addresses. Only these members are in scope. Without path
filters, this narrows whose folders are crawled, including folders
shared with those members, and does not affect team folders. With path
filters, it decides whose Dropbox each path is looked up in. Matched
case-insensitively. |
exclusionUserEmailAddresses |
No | TEAM_ADMIN only. A list of up to 100 team member
email addresses to remove from the scope. Matched
case-insensitively. |
includeMimeTypes |
No | A list of up to 100 MIME types
(,
or to match every
subtype). Only files whose MIME type matches an entry are
crawled. |
excludeMimeTypes |
No | A list of up to 100 MIME types in the same format. Files whose MIME type matches an entry are skipped. |
modifiedDateAfter |
No | An ISO 8601 timestamp with a time zone (for example,
2025-01-01T00:00:00Z). Only files modified after
this time are crawled. |
modifiedDateBefore |
No | An ISO 8601 timestamp with a time zone. Only files modified before this time are crawled. |
maxFileSizeInMegaBytes |
No | Maximum size, in megabytes, of any single file the connector
ingests. Provide as a numeric string (for example,
"50"). |
| Field | Required | Description |
|---|---|---|
aclEnabled |
No | Whether to enable document-level access control, which filters
query results by each user's Dropbox permissions. Supported only with
TEAM_ADMIN. Defaults to true for
TEAM_ADMIN and false for
OAUTH2. You cannot change this setting after you
create the data source. For details, see Document-level access controls. |
Configuration rules
CreateDataSource and UpdateDataSource reject the
following combinations, so you find out before a sync starts:
-
With
OAUTH2: anydataEntityConfigurationfield, either email list, oraclEnabledset totrue. -
A path filter (
inclusionFolderPaths) together with anydataEntityConfigurationfield, whethertrueorfalse. With a path filter, only the named paths are crawled. -
Either email list together with
crawlMemberDrivesset tofalse. -
With
TEAM_ADMIN: bothdataEntityConfigurationfields set tofalse. -
An
inclusionFolderPathsentry that does not start and end with/. -
The same email address in both email lists (ignoring case), or the same entry in both MIME type lists.
-
A
modifiedDateAfterthat is not earlier thanmodifiedDateBefore. -
Changing
aclEnabledafter the data source is created. -
A secret that is missing
clientId,clientSecret, orrefreshToken.
Next steps
After you create the data source, sync it to ingest content into your knowledge base. For details, see Sync a data source. To filter query results by each user's Dropbox permissions, see Document-level access controls.