external help file | applicable | schema |
---|---|---|
SharePoint Online |
2.0.0 |
Creates a new Office 365 Group (aka Unified Group)
New-PnPUnifiedGroup -DisplayName <String>
-Description <String>
-MailNickname <String>
[-Owners <String[]>]
[-Members <String[]>]
[-IsPrivate [<SwitchParameter>]]
[-GroupLogoPath <String>]
[-Force [<SwitchParameter>]]
PS:> New-PnPUnifiedGroup -DisplayName $displayName -Description $description -MailNickname $nickname
Creates a public Office 365 Group with all the required properties
PS:> New-PnPUnifiedGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers
Creates a public Office 365 Group with all the required properties, and with a custom list of Owners and a custom list of Members
PS:> New-PnPUnifiedGroup -DisplayName $displayName -Description $description -MailNickname $nickname -IsPrivate
Creates a private Office 365 Group with all the required properties
PS:> New-PnPUnifiedGroup -DisplayName $displayName -Description $description -MailNickname $nickname -Owners $arrayOfOwners -Members $arrayOfMembers -IsPrivate
Creates a private Office 365 Group with all the required properties, and with a custom list of Owners and a custom list of Members
The Description of the Office 365 Group.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
The Display Name of the Office 365 Group.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
Specifying the Force parameter will skip the confirmation question.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
The path to the logo file of to set.
Type: String
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
Makes the group private when selected.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
The Mail Nickname of the Office 365 Group.
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Accept pipeline input: False
The array UPN values of the group's members.
Type: String[]
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False
The array UPN values of the group's owners.
Type: String[]
Parameter Sets: (All)
Required: False
Position: Named
Accept pipeline input: False