---
title: "Configure the Product to Crawl an Entire SharePoint Online Tenancy"
description: "Set up Data Classification to crawl a whole SharePoint Online tenancy by entering the root site URL, an admin account, match rules, and detection period."
sidebar_position: 80
---

# Configure the Product to Crawl an Entire SharePoint Online Tenancy

Typically the product crawls SharePoint environments on a per-site-collection basis. Sometimes you need to crawl an entire SharePoint Online tenancy. The following guide details how to configure a tenancy for collection.

1. Add SharePoint Online source as described in the
   [SharePoint Online](/docs/dataclassification/5.8/configuration/sources/addsource/sharepointonline.md) section.

    :::note
    If this option isn't available within the source type selection, the source type probably
    isn't licensed. Contact support for more details.
    :::


2. The source operates at the tenancy level, therefore specify the URL as the
   root site collection URL. This is however not a requirement if you don't have a root site
   collection.
3. Specify an account with tenancy administration rights. You can specify accounts in either the
   default AD format _DOMAIN\USERNAME_, or in the format of the user's email address
   _USERNAME@DOMAIN_.
4. The Match Rules are an important configuration option, defining which site collections to
   crawl. Here are some example match rules that may be required:

    - `.*\/Personal\/.*`—Identifying "/personal/" within the URL (as in the following example) - this
      would be the correct configuration to crawl end-user's OneDrive site collections (OneDrive for
      Business)
    - `.*`— Identifies any site collections, ensuring that the product crawls all collections

5. Define the required Classification Template, as well as the Detection Period which defines how
   often the product detects new site collections
6. Select Save.
