PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

New-PnPSite : One or more errors occurred.

Open svermaak opened this issue 5 years ago • 5 comments

Category

  • [ ] Enhancement
  • [x] Bug
  • [ ] Question
  • [ ] Documentation gap/issue

Version

Please specify what version of the library you are using: [ 3.23.2007.1 and 3.25.2009.1 ]

Please specify what version(s) of SharePoint you are targeting: [ Online ]

Expected / Desired Behavior / Question

New Team Site created

Observed Behavior

Error. I have tried various suggestions from other reported issues to no avail image image

Steps to Reproduce

Connect-PnPOnline -ClientId $clientId -ClientSecret $clientSecret -Url $url -ReturnConnection New-PnPSite -Type TeamSite -Title $title -Alias $alias -Connection $tenantConnection

svermaak avatar Oct 07 '20 23:10 svermaak

Moving you to the powershell repo, you ended up in the PnPjs repo. No worries.

patrick-rodgers avatar Oct 07 '20 23:10 patrick-rodgers

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Oct 07 '20 23:10 ghost

Thanks Bud

svermaak avatar Oct 07 '20 23:10 svermaak

@svermaak - Had the same issue here.. New-SPSite in this case actually does a POST to the MS Graph /v1.0/groups endpoint.

Resolved the issue by adding Group.Create and Group.ReadWriteAll app permissions to the app and granting admin consent.

mikedev8888 avatar Nov 04 '20 05:11 mikedev8888

@mikedev8888 Thank you, I will check that out

svermaak avatar Nov 22 '20 21:11 svermaak