O365-12
Issue
- The SharePoint app is missing
Sites.Selectedpermissions for one or more site URLs listed in the connector's inclusion rules.
Resolution
Grant the SharePoint crawler app FullControl on each affected site collection. Sign in as a SharePoint Administrator or higher who is also a member of the target site. For the full procedure, including the provisioning app's required delegated permission, see Provision site permissions.
-
If needed, install PnP PowerShell.
-
Connect to the site collection with your provisioning app. Replace the placeholders with that app's client ID and the site collection URL:
Connect-PnPOnline -Url $SITE_COLLECTION_URL -Interactive -ClientId <provisioningClientId> -
Grant the crawler app access to the site collection. Set
$CLIENT_IDto the SharePoint app client ID entered in Glean. Set the required-DisplayNameto a descriptive label for the site permission:Grant-PnpAzureADAppSitePermission -AppId $CLIENT_ID -DisplayName "Glean SharePoint" -Site $SITE_COLLECTION_URL -Permissions FullControlThe output should include the
fullcontrolrole:Id : <id>Roles : {fullcontrol}Apps : {Glean SharePoint, <clientId>} -
Repeat the grant for each affected site collection and for each additional SharePoint crawler app.
-
In Glean, save the SharePoint connector with validation enabled and confirm the error no longer appears.
For additional assistance, contact Glean Support.