Configure site collection access for the Microsoft SharePoint Online external content connector
Allow the Microsoft SharePoint Online connector to crawl your site collections by granting SharePoint API FullControl permissions to your registered Microsoft Entra OAuth 2.0 app for the connector.
Vorbereitungen
You must have permissions to open an elevated PowerShell session on a Windows system by running PowerShell as an administrator.
Get-Command -Module PnP.PowerShell in a PowerShell session. This cmdlet returns a
list of installed PnP PowerShell aliases and cmdlets if the module is installed. If the cmdlet returns no results, the module isn't installed.- Sites.FullControl.All application permission from the Microsoft Graph API
- AllSites.Read delegated permission from the SharePoint API
Role required: none
Warum und wann dieser Vorgang ausgeführt wird
By default, source system administrators grant the Sites.FullControl.All SharePoint API permission to the registered Microsoft Entra OAuth 2.0 app for the Microsoft SharePoint Online connector. This permission allows the connector to read content, metadata, and security information for all types of content in all source system site collections.
If your organization's security practices don't allow granting of Sites.FullControl.All permission, you can instead grant the Sites.Selected SharePoint API permission to the OAuth 2.0 application. With this permission granted, the Microsoft SharePoint Online connector can only read content, metadata, and security information for site collections that the OAuth 2.0 app has FullControl permission for.
A source system administrator must grant FullControl permission for each site collection that you want the Microsoft SharePoint Online connector to be able to crawl. If you want to prevent the connector from crawling a site collection, you can revoke a previously granted FullControl permission for that site collection.
Prozedur
Nächste Maßnahme
Provide the list of site collections that have FullControl permissions granted for the Microsoft SharePoint Online external content connector to your ServiceNow AI Platform admin. They need this list to configure a Microsoft SharePoint Online external content connector to crawl only the selected sites.
For details on creating and configuring a Microsoft SharePoint Online external content connector, see Create a Microsoft SharePoint Online external content connector.