Replies: 2 comments 3 replies
-
Get-PnPUser retrieves information of a user in aspecific site. So your app needs to have access to at SharePoint API sites.Read If you want to get the user profile in SharePoint you would need to use Get-PnPUserProfileProperty |
Beta Was this translation helpful? Give feedback.
3 replies
-
Using Azure AD seems best solution rather than SharePoint |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get a user from SharePoint Online but am getting the following permissions error:
An error occurred when trying to Get-PnPUser
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
I can connect fine using the Azure App Registration I created. I also gave that permissions to be able to read all users:
SharePoint (1) -- User.Read.All
Any ideas what I'm doing wrong?
Output from Get-PnPConnection:
Beta Was this translation helpful? Give feedback.
All reactions