# SiteTemplateMustHaveRegex

A regular expression to restrict the content that is retrieved by the connector. The template ID for a site must match the regular expression, or the site is not indexed.

You can use this parameter to exclude SharePoint sites that are generated by Microsoft 365 applications, such as Microsoft Teams or OneDrive for Business.

Type: | String (Regular Expression)
Default: |
Required: | No
Configuration Section: | TaskName or Fetchtasks
Example: | `SiteTemplateMustHaveRegex=STS#0`
See Also: | SiteTemplateCantHaveRegex

_FT_HTML5_bannerTitle.htm