pnp / PnP-PowerShell

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

Add the ability to add an AAD security Group to a SharePoint group with the Add-PnPUserToGroup command #2960

Open StevenReid opened 3 years ago

StevenReid commented 3 years ago

The current Add-PnPUserToGroup command allows you to add a user to a SharePoint group.
I would like to be able to use this to add an Active Directory Security Group as well.

e.g. instead of Add-PnPUserToGroup -LoginName user@company.com -Identity 'Marketing Site Members' it could be Add-PnPUserToGroup -LoginName SGC-Marketing-Members -Identity 'Marketing Site Members'

I can see that it is possible using the add-SPOUser command, I can also see that it is possible to specify the -LoginName in the format of 'c:0t.c|tenant|3192eda6-xxxx-xxxx-xxxx-xxxxxb1c1f32 being able to use the name would be simpler :-)

Thank you

ghost commented 3 years ago

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