pnp / PnP-PowerShell

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

[FEATURE] Allow setting Members in New-PnPSite #2967

Open sympmarc opened 3 years ago

sympmarc commented 3 years ago

Describe the solution/cmdlet you'd like When we create a site with New-PnPSite, we can specify the -Owners. It would be great to also have the ability to set the -Members, Setting Members is actually a lot harder than it should be, since there isn't a way to do it without reaching into AAD, unless I'm missing something.

Describe alternatives you've considered We end up using Set-PnPUnifiedGroup, which requires a connection to AAD. It seems like it would make sense to be able to do this with the one call to New-PnPSite.

Additional context It's also difficult to set multiple Members in a PnP Provisioning Template, so these cmdlets are key to use in concert with the templating.