FAQ & Knowledge Base

Welcome to our Knowledge Base. Search or browse through the topics below to find answers to your questions.

Categories: TreeSize | SpaceObServer | Show all categories

Configure the site collections for the SharePoint Sites.Selected permission

Question / Problem

I try to scan my SharePoint sites using a certificate and the Sites.Selected permission, as told in the manual. How do i configure my site collections?

Answer / Solution

To grant permissions on the respective site collections to be scanned via TreeSize/SpaceObServer, the PowerShell cmdlet Grant-PnPAzureADAppSitePermission can be used.

  1.  Import-Module PnP.Powershell
  2. Connect-PnPOnline -Url <SharePointSIteURL> -Interactive
  3. Grant-PnPAzureADAppSitePermission -AppId <AzureAppID> -DisplayName <AzureAppName>  -Site < SharePointSiteURL> -Permissions write

The user that is used for granting the permission must be a site collection admin of the respective site collection. The role 'Owner' is not sufficient.

For more information about the used cmdlets please see: https://pnp.github.io/powershell/cmdlets/