Set-PnPUnifiedGroup

Sets Office 365 Group (aka Unified Group) properties

Syntax

Set-PnPUnifiedGroup
   -Identity <UnifiedGroupPipeBind>
                      [-DisplayName <String>]
                      [-Description <String>]
                      [-Owners <String[]>]
                      [-Members <String[]>]
                      [-IsPrivate [<SwitchParameter>]]
                      [-GroupLogoPath <String>]

Examples

------------------EXAMPLE 1------------------

Set-PnPUnifiedGroup -Identity $group -DisplayName "My Displayname"

Sets the display name of the group where $group is a Group entity

------------------EXAMPLE 2------------------

Set-PnPUnifiedGroup -Identity $groupId -Descriptions "My Description" -DisplayName "My DisplayName"

Sets the display name and description of a group based upon its ID

------------------EXAMPLE 3------------------

Set-PnPUnifiedGroup -Identity $group -GroupLogoPath ".\MyLogo.png"

Sets a specific Office 365 Group logo.

------------------EXAMPLE 4------------------

Set-PnPUnifiedGroup -Identity $group -IsPrivate:$false

Sets a group to be Public if previously Private.

------------------EXAMPLE 5------------------

Set-PnPUnifiedGroup -Identity $group -Owners demo@contoso.com

Adds demo@contoso.com as an additional owner to the group.

Parameters

-Description

The Description of the group to set.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName

The DisplayName of the group to set.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-GroupLogoPath

The path to the logo file of to set.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Identity

The Identity of the Office 365 Group.

Type:UnifiedGroupPipeBind
Position:Named
Accept pipeline input:True
Accept wildcard characters:False
-IsPrivate

Makes the group private when selected.

Type:SwitchParameter
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Members

The array UPN values of members to set to the group. Note: Will replace members.

Type:String[]
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Owners

The array UPN values of owners to set to the group. Note: Will replace owners.

Type:String[]
Position:Named
Accept pipeline input:False
Accept wildcard characters:False