pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

New-PnPSite : One or more errors occurred. #2953

Open svermaak opened 3 years ago

svermaak commented 3 years ago

Category

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

patrick-rodgers commented 3 years ago

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

ghost commented 3 years ago

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

svermaak commented 3 years ago

Thanks Bud

mikedev8888 commented 3 years ago

@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.

svermaak commented 3 years ago

@mikedev8888 Thank you, I will check that out