Add-PnPOffice365GroupToSite

Groupifies a classic team site by creating an Office 365 group for it and connecting the site with the newly created group

Syntax

Add-PnPOffice365GroupToSite
   -Url <String>
                              -Alias <String>
                              -DisplayName <String>
                              [-Description <String>]
                              [-Classification <String>]
                              [-IsPublic [<SwitchParameter>]]
                              [-KeepOldHomePage [<SwitchParameter>]]
                              [-Connection <SPOnlineConnection>]

Description

This command allows you to add an Office 365 Unified group to an existing classic site collection.

Examples

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

Add-PnPOffice365GroupToSite -Url "https://contoso.sharepoint.com/sites/FinanceTeamsite" -Alias "FinanceTeamsite" -DisplayName = "My finance team site group"

This will add a group called MyGroup to the current site collection

Parameters

-Alias

Specifies the alias of the group. Cannot contain spaces.

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

Specifies the classification of the group.

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

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Description

The optional description of the group.

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

The display name of the group.

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

Specifies if the group is public. Defaults to false.

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

Specifies if the current site home page is kept. Defaults to false.

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

Url of the site to be connected to an Office 365 Group.

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