Open yvesrosius opened 1 month ago
Just made some progress..
https://www.blimped.nl/running-application-with-limited-sharepoint-permissions/
This article mentions 2 steps to grant permissions to the application.
Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/project-x" -Interactive
$permission = Grant-PnPAzureADAppSitePermission -AppId "ce6bb9a7-c909-4538-b9dd-930724d7259d" -DisplayName "TestApp" -Permissions Write
Set-PnPAzureADAppSitePermission -PermissionId $permission.Id -Permissions FullControl
Could you please update the documentation on this PnP article using Sites.Selected?
Other people are also running into this issue, as seen in https://github.com/pnp/powershell/discussions/3219
Any update on this? Thanks :-)
Reporting an Issue
Expected behavior
After setting up a managed identity, linked to an Azure Runbook using "Sites.Selected" instead of "Sites.FullControl.All", the Runbook should be able to connect to the sites granted permissions.
The Runbook should be able to perform cmdlets:
Actual behavior
Errors are thrown:
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
2.5.0
Which operating system/environment are you running PnP PowerShell on?