0

I am trying to extract a report from SharePoint through PowerShell and brings an Error 403

"Get-PnpList : The remote server returned an error: (403) Forbidden. At line:21 char:12

  • $library = Get-PnPList -Identity $libraryName -Includes RoleAssignmen ..."

Has anyone encountered this problem before or know how to fix it?

Thanks in advance!

  • What is your permission level on the list? – theChrisKent Sep 9 at 23:29
0

Make sure you have appropriate permission for the site collection where the library is located, such as Full control permission.

| improve this answer | |
  • Thank you for the reply. Yes, I have noticed that. Where can I set that? – Sasan Sep 10 at 20:23
  • Please contact the senior administrator to add you as a site owner in that site collection . – Julie_MSFT Sep 11 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.