Replies: 2 comments 1 reply
-
Did you run this cmdlet: https://pnp.github.io/powershell/cmdlets/Grant-PnPAzureADAppSitePermission.html |
Beta Was this translation helpful? Give feedback.
-
Adding the sites.Selected application permissions is not enough. You have to configure the site(s) and permission for the app. The command: "Grant-PnPAzureADAppSitePermission" does this. I think you need full control to be able to copy a list. Full control is then only added for the configured site. So no need for the application permission Microsoft graph.Sites.FullControl .All and SharepointSites.FullControl .All |
Beta Was this translation helpful? Give feedback.
-
Reporting an Issue or Missing Feature
I am trying to create a copy of SharePoint list in the same site and I am getting permission error.
Expected behavior
Copy list works fine
Actual behavior
When I use the cmdlet "Copy-PnPList -Identity "My List" -Title "Copy of My List", I am getting the follwoing error:
"Copy-PnPList: List copy failed with error You do not have sufficient permission to perform this operation."
Steps to reproduce behavior
"Connect-PnPOnline -Url "https://contoso.sharepoint.com" -ClientId 6c5c98c7-e05a-4a0f-bcfa-0cfc65aa1f28 -Tenant 'contoso.onmicrosoft.com' -Thumbprint 34CFAA860E5FB8C44335A38A097C1E41EEA206AA".
b)Get-PnPFile -Url /sites/project/SiteAssets/image.jpg -Path c:\temp -FileName image.jpg -AsFile. Both of these cmdlets worked successfully.
I am the owner of the SharePoint site and for the azure app registration , I have giveen Sites.Selected permission under application permissions.
What is the version of the Cmdlet module you are running?
I started with version 2.12. Then I updated to latest version nightly 2.99.65. Both have same problem
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions