Azure AD app permissions for getting all sites using PnP Commands #3472
Unanswered
Abhishekbaskar26
asked this question in
Q&A
Replies: 0 comments 3 replies
-
Think you also need to grant the equivalent Graph permission |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi

I am connecting to SharePoint admin center using command "Connect-PnPOnline" with certificate thumbprint and Client Id.
In my Azure AD App, I am having the SharePoint Permission "Sites.Read.All". I am trying to get all the site collections from tenant using this PnP command "Get-PnPTenantSite". I am not able to get any data. It is showing me an Unauthorized Operation.
If i am using "Sites.Manage.All" in Azure AD App, I can able to do all operations.
Can you please explain me Why sites.Read.All is not enough for getting the site collection Details?
Beta Was this translation helpful? Give feedback.
All reactions