Forum Discussion

Dorje-McKinnon's avatar
Dorje-McKinnon
Iron Contributor
Sep 26, 2025

SharePoint Knowledge Agent ExcludeSelectedSites max 100 urls

Hi All, just an FYI post about a Knowledge Agent preview powershell limitation.

As a long time Digital Workplace specialist I've just tried out the Knowledge agent powershell (reference) , to try and test it on 2 of the 444 sites I have in my tenant, but I couldn't.

The ExcludeSelectedSites setting for KnowledgeAgentScope has a limit of 100 urls in the KnowledgeAgentSelectedSitesList array.

I found this out by running the following commands, where I had 442 urls in the $urlsToKeepKMagentTurnedOff array.

Set-SPOTenant -KnowledgeAgentScope ExcludeSelectedSites 
Set-SPOTenant -KnowledgeAgentSelectedSitesList $urlsToKeepKMagentTurnedOff 

I know it is preview but unless we can test this out on real sites, prior to TURNING it on for every site we need to be able to test and trial it to build up our understanding so we can help our site / teams owners.



No RepliesBe the first to reply

Resources