Skip to main content

Crawl restrictions

Use inclusion rules to limit crawling to selected Box folders, or exclusion rules to skip specific content. Configure both in the Glean Admin console.

Supported restrictions​

The Box connector supports the following inclusion and exclusion rules for crawling and indexing.

ContentInclusion rulesExclusion rules
FoldersCrawl specified folders and their contents, including nested folders.Exclude specified folders and their contents, including nested folders.
FilesNot supported as a separate rule. Include the containing folder instead.Exclude specific files.
Users (owners)Not supported as a separate rule.Exclude content owned by specific users.

Exclusion rules take precedence over inclusion rules. For example, including a parent folder doesn't override an exclusion for a nested folder, file, or owner.

If the inclusion list is empty, Glean doesn't limit crawling to particular folders. Exclusion rules and other crawl restrictions still apply. These settings don't grant access to content or change permissions in Box.

For activity filtering by event type or service-account email, contact Glean Support. These filters aren't available in the Inclusion rules or Exclusion rules controls.

Prerequisites​

Have permission to configure connectors in the Glean Admin console.

Apply restrictions​

To edit an existing Box connection:

  1. Go to Admin console → Connectors and open your Box connection.
  2. Open Overview and find Data access (optional). If your connection shows Manage data or Manage data (optional), open that tab instead.
  3. Click Inclusion rules to choose folders to crawl, or Exclusion rules to specify content to skip.
  4. Enter the relevant Box IDs. See Format.
  5. Click Save.

During new connector setup, configure the same rules in Data access (optional) on the Review setup step before completing setup.

When you change the included folders, Glean schedules crawls to apply the new scope. Glean can start full crawls from the included folders and reuse previously discovered folder owners on later crawls. Changes to indexed results aren't immediate.

Format​

Use numeric Box IDs, not names, email addresses, or full URLs. The following fields appear under Inclusion rules → Folders.

FieldWhat to enter
Folder IDThe ID of a folder to include, such as 123456789012.
Owner ID (optional)The folder owner's Box user ID, such as 1234567890. This helps Glean find the folder owner during crawling. It doesn't include all content owned by that user.

Click Add folder to add another row. You can also paste multiple folder IDs, separated by commas, spaces, or line breaks, into Folder ID. To paste a folder with an owner, use folderId:ownerId, such as 123456789012:1234567890. If you don't know the owner ID, leave it empty.

To remove a folder from the inclusion list, click its Remove folder (X) control, then click Save. Clearing the list removes the folder inclusion limit. Exclusion rules and other crawl restrictions still apply.

Under Exclusion rules, enter comma-separated IDs in Users, Folders, or Files. For example, use 123456789012,234567890123 to exclude two folders.

Find folder and file IDs​

Open the folder or file in Box and copy its numeric ID from the URL. For example, the folder ID in https://app.box.com/folder/123456789012 is 123456789012. A file URL uses /file/ instead of /folder/.

Find user IDs​

As a Box admin, open the Box Admin Console and go to Users & Groups.

Click a user in the list and copy their ID from the URL. For example, in https://app.box.com/master/content/1234567890/0/0, the user ID is 1234567890.