Knowledgebase

status_loader

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/

Need further help getting started?

You did not find what you were looking for? Please contact us so we can provide an answer to your question.

Contact Form