Skip to content

Latest commit

 

History

History
148 lines (110 loc) · 2.77 KB

Set-PnPUnifiedGroup.md

File metadata and controls

148 lines (110 loc) · 2.77 KB
external help file applicable schema
SharePoint Online
2.0.0

Set-PnPUnifiedGroup

SYNOPSIS

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

PS:> Set-PnPUnifiedGroup -Identity $group -DisplayName "My Displayname"

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

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

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

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

Sets a specific Office 365 Group logo.

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

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

Sets a group to be Public if previously Private.

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

PS:> 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
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-DisplayName

The DisplayName of the group to set.

Type: String
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-GroupLogoPath

The path to the logo file of to set.

Type: String
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Identity

The Identity of the Office 365 Group.

Type: UnifiedGroupPipeBind
Parameter Sets: (All)

Required: True
Position: Named
Accept pipeline input: True

-IsPrivate

Makes the group private when selected.

Type: SwitchParameter
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Members

The array UPN values of members to add to the group.

Type: String[]
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

-Owners

The array UPN values of owners to add to the group.

Type: String[]
Parameter Sets: (All)

Required: False
Position: Named
Accept pipeline input: False

RELATED LINKS

SharePoint Developer Patterns and Practices