A cloud-based identity and access management service for securing user authentication and resource access
Unable to Assign Sites.Selected Write Access to a Single SharePoint Site: Grant-PnPAzureADAppSitePermission Failing
Hi everyone,
I’m trying to configure restricted SharePoint access for an automation workflow (n8n chatbot). My goal is to allow an Azure App Registration to access ONE SharePoint site only using Sites.Selected with Write permissions.
However, I keep running into multiple PowerShell errors and cannot successfully grant the permission.
✔ What I already did
1. App Registration (Azure Entra ID)
Created an App Registration using an admin account.
Added API Permissions: Sites.Selected (Application) & Files.ReadWrite.All (Application)
Created a Client Secret.
2. SharePoint Setup
Created a dedicated site ONLY for my specific work
3.Installed PnP.PowerShell Using PowerShell 7.5.4
Whenever I try to connect or grant the permission, I get errors.
ERROR 1 — Connect-PnPOnline -Url "https://
Microsoft Security | Microsoft Entra | Microsoft Entra ID
1 answer
Sort by: Oldest
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more