Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 759 Bytes

File metadata and controls

27 lines (22 loc) · 759 Bytes

#Add-SPOUserToGroup Adds a user to a group ##Syntax

Add-SPOUserToGroup -LoginName <String> -Identity <GroupPipeBind> [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
Identity GroupPipeBind True The group id, group name or group object to add the user to.
LoginName String True The login name of the user
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Add-SPOUserToGroup -LoginName user@company.com -Identity 'Marketing Site Members'

###Example 2

PS:> Add-SPOUserToGroup -LoginName user@company.com -Identity 5

Add the specified user to the group with Id 5