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:
![image](https://private-user-images.githubusercontent.com/196158987/405933708-c9afbf0e-43da-4ed5-ad79-523c88d8128f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODE5NDUsIm5iZiI6MTczOTY4MTY0NSwicGF0aCI6Ii8xOTYxNTg5ODcvNDA1OTMzNzA4LWM5YWZiZjBlLTQzZGEtNGVkNS1hZDc5LTUyM2M4OGQ4MTI4Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQwNDU0MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMjg2OTZlNzk5ZDYyOGQzZmRhYWZkY2FmY2RkNjliM2ExN2QwNjkyMDU2YTE5Y2IzNGRlMDcxZWQxNjVkYTk0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.CQNkzuUSRMwdZnb-x9TW_LskkRw4ag8v5-l0nHOZgcg)
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