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!