-
Hello ! For a project, I have to write a script to upload multiple files from a local source to my sharepoint library. After some reasearch, the command "Resolve-PnPFolder" look very helpfull to create the folders during the upload process. However, I can't make it work. I always get the error "Resolve-PnPFolder: Access denied". I searched it online but the few posts talking about that don't have answers or the solution don't work for me. Here is what I did :
I use PowerShell 7.4.1 with PNP 2.5.5-Nightly I did the Register-PnPManagementShellAccess. My account do have global admin right and on the site I have Full-Control / Owner rights. I check the app rights on my Azur account and it does have the rights set. How can I solve this issue ? What should I check ? Is there a way to have a more verbose error message ? Thanks for helping ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It turns out the relative path is not the same for all the commands. For the Resolve-PnPFolder, you have to put the relative path after the https://URL/sites/. In my exemple it would be : |
Beta Was this translation helpful? Give feedback.
It turns out the relative path is not the same for all the commands.
For the Resolve-PnPFolder, you have to put the relative path after the https://URL/sites/. In my exemple it would be :
Resolve-PnPFolder -SiteRelativePath "Documents/Test-Script" -Connection $Connexion