You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using delegated model with interactive login, no admin consent required. PNP App is configured with Sites.Read.All and consented. User is SharePoint Online administrator, and this is all verified. Connection is successful, but attempting to retrieve site collections using Get-PNPTenantSite fails with "Attempted to perform an unauthorized operation".
I have seen a couple people reference that Read.All is insufficient to retrieve the site collections as it retrieves more than just the metadata. Is this correct? Is Sites.Manage.All sufficient?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using delegated model with interactive login, no admin consent required. PNP App is configured with Sites.Read.All and consented. User is SharePoint Online administrator, and this is all verified. Connection is successful, but attempting to retrieve site collections using Get-PNPTenantSite fails with "Attempted to perform an unauthorized operation".
I have seen a couple people reference that Read.All is insufficient to retrieve the site collections as it retrieves more than just the metadata. Is this correct? Is Sites.Manage.All sufficient?
Beta Was this translation helpful? Give feedback.
All reactions