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 :-)
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