---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Restrict the Microsoft SharePoint Online sites that External Content Q\&A Genius Results can search

# Restrict the Microsoft SharePoint Online sites that External Content Q\&A Genius Results can search {#ariaid-title1}

* Release version: Xanadu
* 
* Updated March 24, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Define a Microsoft Keyword Query Language (KQL) query to restrict the set of Microsoft SharePoint Online sites (paths) that External Content Q\&A Genius Results can search for documents. Only documents that satisfy your query are eligible for External Content Q\&A Genius Result
answer generation.

## Before you begin

The Now Assist in AI Search
ServiceNow® Store application must be installed on your instance. For details on installing this application, see [Install Now Assist in AI Search](https://servicenow-prod.fluidtopics.net/zHNz7wFlcM_JJX5K2HHXlg "As an administrator, you can install the Now Assist in AI Search application (sn_ais_assist) from the Now Assist Admin module.").

Role required: admin

## About this task

By default, External Content Q\&A Genius Results search for relevant documents in all sites (paths) in your Microsoft SharePoint Online source system. You can restrict the set of sites searched by specifying a Microsoft Keyword Query Language (KQL) property restriction query expression as the value for the sn_ais_assist.sharepoint_search.query_filter system property. Only documents from
sites that satisfy your property restriction query are eligible for External Content Q\&A Genius Result retrieval and answer generation.

To learn more about KQL property restriction queries and the operators they support, see <https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference>.

## Procedure

1. Navigate to the System Property \[sys_properties\] table's list view.
   1. Select All.
   2. In the Filter field, enter <kbd class="ph userinput">sys_properties.list</kbd>.
   3. Press Enter.
   {#filter-spo-sites-ext-cont-qa-gr__substeps_nbl_xcl_kbc}
2. Search the list for the sn_ais_assist.sharepoint_search.query_filter system property record.
   * If the system property record appears in the list, open it in form view by selecting it.
   * If the system property record does not appear in the list, add it, setting its Type to <kbd class="ph userinput">string</kbd>. To learn how to add a new system property, see [Add a system property](https://servicenow-prod.fluidtopics.net/r_0P5ICBCd42vTv64UVY9w#t_AddAPropertyUsingSysPropsList "Add or create a property to control system behavior.").
   {#filter-spo-sites-ext-cont-qa-gr__choices_hfz_jny_kbc}
3. In the system property record's Value field, enter a valid KQL property restriction query expression.  
   As an example, suppose your Microsoft SharePoint Online source system is https://example.sharepoint.com.
   * To limit External Content Q\&A Genius Result searches to documents in your Marketing and Sales sites, you might enter <kbd class="ph userinput">path:"https://example.sharepoint.com/teams/Marketing/" path:"https://example.sharepoint.com/teams/Sales/"</kbd> as your property restriction query expression.
   * To prevent External Content Q\&A Genius Results from searching documents in your Engineering and QA sites, you might enter <kbd class="ph userinput">NOT (path:"https://example.sharepoint.com/teams/Engineering/" path:"https://example.sharepoint.com/teams/QA/")</kbd> as your query expression.

   {#filter-spo-sites-ext-cont-qa-gr__ul_xkm_l3l_kbc}  
   Note:  
   You can use KQL Boolean and inclusion/exclusion operators to combine multiple property restriction expressions into a complex query expression.
4. Select Update.

## Result

When searching for documents in your Microsoft SharePoint Online source system, External Content Q\&A Genius Results apply your property restriction KQL query as a filter. Only documents in sites that satisfy your query are eligible for
retrieval and answer generation.

