Replies: 2 comments 1 reply
-
You can grant the permission Site.Selected. Then grant Edit (or full control) for the app on that single site. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Is there a way besides the Sites.read.all application rights to ensure my application is granted sufficient permissions for managin the site I am connecting to? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am simply trying to manage an existing site by adding/removing folders and files, nothing special. I am new to the App Registration approach, but I read through lots of documentation and in the end I always see the requirement of having Sites.FullControl.All permissions to manage sites. Is that true?
What I'm trying to do:
So, nothing special at all. My code looks like:
Connect-PnPOnline "https://TenantName.sharepoint.com/MySiteName" -ClientId "MyClientID" -Tenant TenantName.onmicrosoft.com -Thumbprint "CertThumbprint -verbose
Get-PnPTenantId
Get-PnPSite
Output is the following:
I am surprised to get the tenant ID, which means to me, that a connection is established, but thats all. No functions for files/folders are working.
The following permissions are given, some of them are not important in my current case, but the last ones are not given due to enterprise policies:
Beta Was this translation helpful? Give feedback.
All reactions