Skip to main content

Crawl restrictions

  • Use Greenlist restrictions to allow crawling only for content that you specify.
  • Use Redlist restrictions to prevent Glean from crawling content that you specify.
Restriction TypeGreenlistRedlistDetails
Time-based RestrictionsRestrict crawling to include/exclude content created/modified/viewed after a certain date.
Identity-based RestrictionsRestrict crawling to include/exclude content created/modified/viewed by specific users or a specific group (plus public content).
Content-based RestrictionsRestrict crawling to include/exclude specific content, documents, messages, or objects.

Supported restrictions

RestrictionGreenlistRedlistDetails
DateRestrict crawling to only content created/modified/viewed after a specific date.
SiteRestrict crawling to include/exclude specific SharePoint sites.
note

Sites must be provided in URL format without a trailing forward slash. For example:

https://<domain>.sharepoint.com/sites/<siteName>

For Group restrictions when using Azure AD/Entra ID, the Object ID of the AD Group must be provided, and NOT the Group name. For example:

7c77a355-c78c-6362-a195-d2428d285107

Limitations

Date

  • This restriction cannot currently be applied in the Admin UI.
  • Time-based restrictions do NOT speed up crawling as content is often not returned from vendor APIs ordered by date.
  • Some vendor APIs stop returning viewed dates ~4-5 months in the past for specific types of content.

Entra ID Group

  • This restriction cannot currently be applied in the Admin UI.
  • Public content, despite being accessible to all users in SharePoint, will only be viewable in Glean to users in this group.

Site

  • Every subsite must be explicitly specified. You cannot specify a site collection or parent-site and have the crawler include/exclude all subsites.

Apply restrictions

MethodSupportedDetails
Admin UIRestrictions can be applied in the Admin UI under the connector settings.
Glean SupportRestrictions can be applied by Glean support on request.
note

Not all restrictions can be applied in the Admin UI. Contact Glean support to apply the restriction if it is missing from the UI.

Exclude with Purview sensitivity labels

Exclude sensitive Microsoft 365 content from search results and Glean by integrating with Microsoft Purview sensitivity labels. When this integration is enabled, items in SharePoint and OneDrive with selected labels are excluded from indexing. Because these items are not indexed, they do not appear in Glean results. For more information, see Restrict O365 content via sensitivity labels.

Exclude draft content

Glean does not index SharePoint pages, list items, or drive items that are in a draft or unpublished state. Draft items do not appear in Glean search results.

What counts as draft content

Glean treats a SharePoint page, list item, or drive item as draft when any of these conditions is true:

  • Minor version — The item's latest version is a minor (draft) version (for example, 1.1 or 0.3).
  • Checked out — The item is currently checked out by a user for editing.
  • Pending moderation — The item has a non-approved moderation status (for example, pending or rejected) in a list or library that has content approval enabled.

Items that have never been published (version below 1.0) are excluded entirely and are not indexed.

Troubleshooting missing SharePoint pages or list items

If a SharePoint page or list item does not appear in Glean, verify its status in SharePoint:

  1. Publish the item — If the item is in a draft or minor version, publish a major version.
  2. Check in the item — If the item is checked out, check it back in so the published version is available. An admin can also cancel the checkout if another user checked the item out.
  3. Approve pending moderation — If the list or library uses content approval, approve the item so it moves to an approved state.

After you resolve the draft condition, Glean indexes the item during the next crawl cycle.