How the connector works
The connector reads files from all or selected folders, keeps the ones that match your filters, and adds them to the knowledge base. It crawls Box permissions before content becomes searchable.What happens at each stage
What happens at each stage
- The connector authenticates with the Box OAuth profile and lists files in the selected scope.
- It keeps files that match the file type and modified date filters.
- It extracts, chunks, and embeds the content of each file.
- If you keep Enforce Box permissions on, it crawls owner, user, and group grants and applies them to search results.
Before you begin
Make sure that you have the following:- A Box account with access to the content to index.
- Permission in Box to create a custom app, or an enterprise admin who can approve one.
- A knowledge base in your project, and permission to add sources to it.
Step 1: Prepare Box access
Create a custom app in Box so the connector can request access to your content. You need the client ID and client secret in Step 2.- In the Box Developer Console, create a Custom App with User Authentication (OAuth 2.0).
- In the app’s Configuration, add the Callback URL from the auth profile form in Step 2 as a redirect URI.
- Under Application Scopes, select Read all files and folders stored in Box.
- Ask your Box enterprise admin to approve the app, if your enterprise requires it.
- Copy the Client ID and Client Secret.
Required scopes
Required scopes
The auth profile lists these Box scopes by default.
Step 2: Create the auth profile
The auth profile stores the app credentials from Step 1 and the token that the connector uses for each request. You can create the profile from the connector, so you don’t need to leave the setup flow.1
Open the Box connector
- Go to Knowledge Bases, and then open your knowledge base.
- On Overview, under Connect a data source, select Box, and then select Connect.
- On the Connect step, select New connection. The new auth profile panel opens.
2
Enter the profile details
3
Review the OAuth settings
The form fills in the Box endpoints and scopes. Keep these values.
4
Save and authorize the profile
Select Create Profile, and then complete the Box authorization. The connector returns to the Connect step.
Step 3: Configure the connector
Tell the connector which content to read and which files to keep. Each step below matches a step in the setup wizard.1
Connect
2
Scope
3
Permissions
Optional. Keep Enforce Box permissions on to apply Box grants to search results. See Permissions.
Step 4: Validate and activate
Test the configuration before the first full sync. Validation catches access and filter errors early, before you index any content.1
Generate a proposal
Select Generate proposal. The server compiles the package and shows the permission posture in the Proposal preview.
2
Run a dry run
Select Dry run. The connector checks the configuration without indexing content. Fix any access or filter errors before you continue.
3
Review the field mapping
On Field Mapping, confirm how Box file attributes map to knowledge base fields.
4
Approve and sync
Select Approve & sync. The first sync starts and indexes all matching files.
Sync behavior
After the first sync, the connector processes new and changed files. You can also start a sync at any time from the source.- A manual sync runs immediately, whatever the schedule.
- Changes to the folders, filters, or auth profile apply on the next sync.
- With All files, the scope grows as the authorized account gains access to more content.
Permissions
By default, the connector keeps Enforce Box permissions on. It crawls owner, user, and group grants before content becomes searchable, and returns a file only to users who can open it in Box.Limits and considerations
Keep these limits in mind when you plan the scope of the connector.- The connector indexes only content that the authorized Box account can access.
- The folder browser lists folders only after you select a Box connection.
- The connector indexes only the file types that the File types setting allows.
Troubleshoot common issues
Most issues come from the Box app setup, app approval, or filters that exclude every file. Find your symptom in the table, and then apply the solution.Related articles: Learn more about auth profiles and Box app setup.