Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Copy-PnPList throwing unauthorized exception when used with a non SPO admin user #2054

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

KoenZomers
Copy link
Collaborator

@KoenZomers KoenZomers commented Jun 29, 2022

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #1927

What is in this Pull Request ?

Elevating to the Tenant object to request a list site script to be generated requires the SharePoint Online Administrator permissions. Code has been changed to call into the SharePoint Online API instead, which also supports normal user accounts which are not administrators.

@gautamdsheth gautamdsheth merged commit d0cbcc3 into pnp:dev Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Copy-PnPList -> Attempted to perform unauthorized operation
2 participants