--- title: "Create a File Server or SharePoint repository definition" slug: "create-a-file-server-or-sharepoint-repository-definition" tags: ["Product Usage", "DLP 11.12.x"] updated: 2026-09-09T08:05:50Z published: 2026-09-09T08:05:50Z canonical: "docs.trellix.com/create-a-file-server-or-sharepoint-repository-definition" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Create a File Server or SharePoint repository definition Configure a File Server or SharePoint repository for scanning. You can use regex in Perl syntax when specifying include or exclude parameters for folders, rather than using a specific full path. - For include entries, specify the path prefix, such as \\server or \\server\share\folder. The regular expression must be an exact match of the path suffix. - For exclude entries, folders that match the path is skipped entirely from the scan. For details about product features, usage, and best practices, click ? or Help. 1. In ePO - On-prem, select one of the following: - **Menu** → **Data Protection** → **DLP Discover** - **Menu** → **Data Protection** → **DLP Policy Manager** 2. Click the **Definitions** tab. 3. In the left pane, under **Repositories**, select the type of repository. 4. Select **Actions** → **New Item**. 5. Enter a name, select the credentials to use, and configure at least one **Include** definition. 6. (File Server repositories) Configure at least one **Include** entry. 1. Select the **Prefix Type**. 2. In the **Prefix** field, enter the UNC path, single IP address, or IP address range. > [!NOTE] > Note > > The UNC path can be the fully qualified domain name (FQDN) (\\myserver1.mydomain.com) or the local computer name (\\myserver1). You can add both versions to a single definition. Multiple entries are parsed as logical OR. 3. (Optional) Enter a regular expression for matching folders to scan. 4. Click **Add**. 7. (SharePoint repositories) Configure at least one **Include** entry. 1. Select the **Include** type. 2. Configure one or more URLs. > [!NOTE] > Note > > The **SharePoint Server** option uses only one URL. The host name is the NetBIOS name of the server unless Alternate Access Mapping (AAM) is configured on the server. For information about AAM, see the SharePoint documentation from Microsoft. - **To specify a site** — End the URL with a slash (http://SPServer/sites/DLP/). - **To specify a subsite** — Use the subsite ending with a slash (http://SPserver/sites/DLP/Discover/). - **To specify a web application** — Use only the web application name and port in the URL (http://SPServer:port). - **To specify a list or document library** — Use the complete URL up to the default view of the list (http://SPServer/sites/DLP/Share%20Documents/Default.aspx). > [!NOTE] > Note > > You can look up the default view URL in the list or library settings page. If you do not have permission to view this, contact your SharePoint administrator. 3. If you configured a **Sites list** URL, click **Add**. 8. (SharePoint online repositories) Configure the **Include** entry. 1. Under **Include** entry, select **SharePoint server**. 2. Click **Edit** to add the credentials. 3. Add the credentials and click **Save**. 9. (Optional) Configure **Exclude** parameters to exclude folders from being scanned. 10. Click **Save**.