Connect a Box data source
After you set up authentication and store your credentials in an AWS Secrets Manager secret, create the Box 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.
Note
Complete authentication setup first. See Set up Client Credentials Grant authentication for Box (recommended) or Set up OAuth 2.0 authentication for Box. You need the secret ARN.
Create the data source
Connector parameters
The data source configuration uses the following connector parameters. To connect
to Box, specify BOX as the connector type in
connectorParameters. For the fields that wrap
connectorParameters (such as
deletionProtectionConfiguration and
mediaExtractionConfiguration), see Connect a data source.
| Field | Required | Description |
|---|---|---|
secretArn |
Yes | The ARN of the AWS Secrets Manager secret containing your Box credentials. |
authType |
Yes | The authentication type: CCG (recommended) or
OAUTH2. See Authentication methods. |
| Field | Required | Description |
|---|---|---|
inclusionFolderIds |
No | A list of folder IDs to crawl. |
inclusionFileIds |
No | A list of file IDs to crawl. |
| Field | Required | Description |
|---|---|---|
maxFileSizeInMegaBytes |
No | Maximum size, in megabytes, of any single file the connector
ingests. Provide as a numeric string (for example,
"500"). Defaults to "500". |
| Field | Required | Description |
|---|---|---|
aclEnabled |
No | Set to true to enable document-level access control.
Requires CCG authentication. You cannot change this
setting after you create the data source. For details, see Document-level access controls. |
Change the authentication method
You can change a data source's authentication method (for example, from OAuth 2.0
to Client Credentials Grant) by updating the data source with the new
authType and a secret that contains the matching credentials, using the
UpdateDataSource operation or the AWS Management Console. The document-level access
control setting is fixed when you create a data source, so to add or remove ACLs you
must create a new data source.
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 user permissions, see Document-level access controls.