HomeAbout Me
Microsoft 365
Groupify a SharePoint Online Site using M365 CLI
Simon Ågren
Simon Ågren
September 09, 2022
1 min
Groupify a SharePoint Online Site using M365 CLI

This post will explore connecting a new Microsoft 365 group with an existing SharePoint Online site using M365 CLI. In a previous post, I explained how to do this using the SPO Management PowerShell and the PnP PowerShell module.

In the M365 CLI, we can use the spo-site-groupify command to connect an existing site with a new Microsoft 365 group. Ensure that you have installed the latest version of M365 CLI

m365 login
$siteUrl = "https://<tenantname>.sharepoint.com/sites/site1"
$groupName = "Group1"
$mailNickname = "Group1"
m365 spo site groupify --url $siteUrl --alias $mailNickname --displayName $groupName

Thank you for reading
/Simon


Tags

sharepointpowershell
Previous Article
Groupify a SharePoint Online Site using PnP PowerShell

Simon Ågren

CTA & Microsoft MVP

Solving business problems with tech

Expertise

Microsoft 365
Azure

Social Media

githubtwitterwebsite

Related Posts

Creating Multilingual DLP Policies with PowerShell
Creating Multilingual DLP Policies with PowerShell
October 15, 2024
1 min

Quick Links

About

Social Media