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? Sep 9, 2020 at 23:29

1 Answer 1


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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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