Add-SPOUserToGroup

Synopsis

Adds a user to a SharePoint Group

Syntax

Add-SPOUserToGroup -Web <Web> -UserName <String> -GroupName <String> [<CommonParameters>]

Description

Parameters

-Web <Web>

Required? True
Position? named
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

-LogonName <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-GroupName <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-UserName <String>

Required? True
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

Examples

Add a user to the members group

PS C:\> Add-SPOUserToGroup -Web $ctx.Web -UserName admin@somesite.onmicrosoft.com -GroupName "SomeSite Members"

Related links

Last edited Aug 5, 2014 at 12:07 AM by provokesolutions, version 2

Comments

No comments yet.