Box
Box is a cloud content management and file sharing service for storing, sharing, and collaborating on files and folders. You can connect your Box enterprise as a data source for your managed knowledge base to crawl files and folders.
Supported features
-
Crawl files and folders
-
Automatic detection of common document fields (such as title, author, and created or modified dates)
-
Inclusion content filters for specific files and folders (OAuth 2.0 and user-managed setup authentication)
-
Maximum file size filtering
-
Incremental content syncs for added, updated, and deleted content
-
Client Credentials Grant (2LO), OAuth 2.0 (3LO), and user-managed setup (3LO) authentication
-
Document-level access control (ACLs), with Client Credentials Grant authentication
Authentication methods
A Box data source supports three authentication methods. Choose one before you begin, because it determines the credentials you create and whether you can use document-level access control. We recommend Client Credentials Grant authentication for new data sources.
| Method | How it authenticates | When to use | Setup |
|---|---|---|---|
Client Credentials Grant (CCG) — recommended |
The connector authenticates as a Box app using the Client Credentials Grant (2LO) flow, with enterprise-wide access. No user sign-in. | Crawling content across your Box enterprise, and any data source that uses document-level access control. | Set up Client Credentials Grant authentication |
OAuth 2.0 (OAUTH2) |
The connector authenticates as a Box app on behalf of a specific user (3LO), and crawls the content that user can access. | Crawling content for a specific user. Not supported with document-level access control. | Set up OAuth 2.0 authentication |
User-managed setup (MANAGED_OAUTH2) |
You sign in to Box from the console. Amazon Bedrock handles the OAuth app and stores the token in a secret it creates in your account. The connector crawls the content the signed-in user can access. | The quickest setup for crawling the content a specific user can access, with no Box app or secret to create. Not supported with document-level access control. | User-managed setup (3LO) |
Prerequisites
With user-managed setup (3LO), you do not create a Box app or an AWS Secrets Manager secret yourself. Amazon Bedrock handles the OAuth app and creates the secret when you sign in. The following Box-app and secret prerequisites apply to Client Credentials Grant and OAuth 2.0 authentication only. For user-managed setup, see User-managed setup (3LO), and for the IAM permissions the console user needs to sign in, see IAM permissions for user-managed setup (3LO).
In Box, make sure you:
-
Create and configure a Box app for the connector to authenticate with. The app configuration depends on your authentication method — see the setup page for your method: Set up Client Credentials Grant authentication for Box or Set up OAuth 2.0 authentication for Box.
In your AWS account, make sure you:
-
Store your authentication credentials in an AWS Secrets Manager secret and note the Amazon Resource Name (ARN) of the secret.
-
For the exact key-value pairs to store in the secret, see the setup page for your authentication method: Set up Client Credentials Grant authentication for Box or Set up OAuth 2.0 authentication for Box.
-
Include the necessary permissions to connect to your data source in your AWS Identity and Access Management (IAM) role/permissions policy for your knowledge base. For information on the required permissions, see Permissions to access your data sources.
How to set up a Box data source
Setting up a Box data source involves the following steps:
-
Set up authentication. Follow the page for your chosen method to create the Box app credentials and store them in AWS: Set up Client Credentials Grant authentication for Box or Set up OAuth 2.0 authentication for Box. With user-managed setup, you skip this step and sign in during data source creation instead. See User-managed setup (3LO).
-
Connect the data source. Create the Box data source in the knowledge base using the AWS Management Console or the API. See Connect a Box data source.
-
(Optional) Enable document-level access control. Filter query results by each user's Box permissions. Requires Client Credentials Grant authentication. See Document-level access controls.