How can I create an office 365 group with managed path "/teams"?

%3CLINGO-SUB%20id%3D%22lingo-sub-175883%22%20slang%3D%22en-US%22%3EHow%20can%20I%20create%20an%20office%20365%20group%20with%20managed%20path%20%22%2Fteams%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175883%22%20slang%3D%22en-US%22%3E%3CP%3EI%20love%20the%20PnP%20Powershell%20cmdlets%20to%20provision%20new%20office%20365%20groups.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIs%20there%20any%20possibility%20to%20create%20an%20office%20365%20group%20in%20the%20%2Fteams%20path%3F%3C%2FP%3E%0A%3CP%3ENew-PnPUnifiedGroup%20always%20creates%20the%20groups%20under%20the%20%2Fsites%20path.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3EBeat.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-175883%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-274701%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20create%20an%20office%20365%20group%20with%20managed%20path%20%22%2Fteams%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-274701%22%20slang%3D%22en-US%22%3EDid%20you%20ever%20find%20a%20solution%20for%20this%3F%20I%20agree%20that%20having%20every%20possible%20create%20group%20command%20(whether%20Graph%20or%20PNP)%20just%20lean%20on%20the%20default%20tenant%20setting%20is%20worthless.%3CBR%20%2F%3E%3CBR%20%2F%3EBy%20default%20sites%20created%20through%20the%20SharePoint%20interface%20should%20have%20defaulted%20to%20%2Fsites%2F%20and%20teams%20created%20through%20the%20teams%20interface%20should%20have%20defaulted%20to%20%2Fteams%2F.%20At%20least%20that%20would%20have%20been%20logical.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20more%20so%20I%20want%20the%20option%20to%20specify%20the%20URL%20of%20the%20site%2Fgroup%2Fteam%20that%20I'm%20generating%20with%20powershell%20(like%20it%20has%20always%20been).%20The%20absence%20of%20this%20parameter%20has%20caused%20us%20hundreds%20of%20lines%20of%20code%20working%20around%20this%20mess%20to%20create%20a%20disconnected%20site%2C%20turn%20it%20into%20a%20group%20and%20then%20a%20team.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-183730%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20create%20an%20office%20365%20group%20with%20managed%20path%20%22%2Fteams%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-183730%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20the%20link%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups-AMA%2FGroups-and-SharePoint-site-collections%2Fm-p%2F112124%2Fhighlight%2Ftrue%23M281%22%20target%3D%22_self%22%3Erelated%20post%3C%2FA%3E.%20I%20have%20the%20same%20requirement%20as%20mentioned%20by%20Darren.%20We%20would%20like%20to%20use%20both%20paths%20%2Fteams%20and%20%2Fsites.%20Changing%20the%20default%20doesn't%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-175905%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20I%20create%20an%20office%20365%20group%20with%20managed%20path%20%22%2Fteams%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-175905%22%20slang%3D%22en-US%22%3E%3CP%3EPlease%20refer%20to%20a%20previous%20techcommunity%20Post%20below%20which%20provides%20answers.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups-AMA%2FGroups-and-SharePoint-site-collections%2Ftd-p%2F62064%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FOffice-365-Groups-AMA%2FGroups-and-SharePoint-site-collections%2Ftd-p%2F62064%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20those%20who%20weren't%20able%20to%20find%20the%20option%3A%3C%2FP%3E%0A%3CP%3E-%20under%20https%3A%2F%2F%5Byourdomain%5D-admin.sharepoint.com%2C%20go%20to%20settings%3C%2FP%3E%0A%3CP%3E-%20in%20SPO%20settings%2C%20head%20down%20to%20Site%20Creation%3C%2FP%3E%0A%3CP%3E-%20change%20it%20to%20%22Show%20the%20Create%20site%20command%20to%20users%20who%20have%20permissions%20to%20create%20sites%22%3C%2FP%3E%0A%3CP%3E-%20additional%20options%20appear%2C%20with%20descriptions.%20We%20chose%20the%20middle%20option%20(A%20site%20with%20an%20O365%20Group)%3C%2FP%3E%0A%3CP%3E-%20set%20the%20default%20%22Create%20groups%20under%3A%22%20to%20teams%3C%2FP%3E%0A%3CP%3E-%20we%20added%20a%20secondary%20contact%20requirement%3C%2FP%3E%0A%3CP%3E-%20save%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConsiderations%3A%3C%2FP%3E%0A%3CP%3E-%20You'll%20need%20to%20use%20PowerShell%20to%20update%20your%20secruity%20group%20on%20who%20is%20allowed%20to%20create%20sites%2C%20most%20won't%20want%20to%20open%20this%20to%20all%20staff.%20There%20are%20some%20default%20groups%20that%20will%20remain%20able%20to%20create%20O365%20groups%20(Office%20365%20Global%20admins%2C%20Mailbox%20administrator%2C%20Partner%20Tier1%20and%202%20support%2C%20and%20Directory%20Writers)%3C%2FP%3E%0A%3CP%3E-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FControl-who-can-create-Office-365-Groups-4c46c8cb-17d0-44b5-9776-005fced8e618%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Support%20Page%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E-%20Once%20you%20set%20the%20default%20to%20%22%2FTeams%2F%22%2C%20O365%20groups%20created%20from%20the%20O365%20Admin%20portal%20will%20default%20to%20teams%20as%20well%2C%20without%20the%20option%20to%20create%20them%20in%20%22%2FSites%2F%22.%3C%2FP%3E%0A%3CP%3E-%20If%20you%20revert%20the%20change%20back%20to%20%22Hide%20the%20Create%20site%20command%22%2C%20the%20default%20returns%20to%20%22%2FSites%2F%22.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20that%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I love the PnP Powershell cmdlets to provision new office 365 groups.

 

Is there any possibility to create an office 365 group in the /teams path?

New-PnPUnifiedGroup always creates the groups under the /sites path.

 

 

Thanks,

Beat.

3 Replies
Highlighted

Please refer to a previous techcommunity Post below which provides answers.

https://techcommunity.microsoft.com/t5/Office-365-Groups-AMA/Groups-and-SharePoint-site-collections/...

 

For those who weren't able to find the option:

- under https://[yourdomain]-admin.sharepoint.com, go to settings

- in SPO settings, head down to Site Creation

- change it to "Show the Create site command to users who have permissions to create sites"

- additional options appear, with descriptions. We chose the middle option (A site with an O365 Group)

- set the default "Create groups under:" to teams

- we added a secondary contact requirement

- save

 

Considerations:

- You'll need to use PowerShell to update your secruity group on who is allowed to create sites, most won't want to open this to all staff. There are some default groups that will remain able to create O365 groups (Office 365 Global admins, Mailbox administrator, Partner Tier1 and 2 support, and Directory Writers)

- Microsoft Support Page

- Once you set the default to "/Teams/", O365 groups created from the O365 Admin portal will default to teams as well, without the option to create them in "/Sites/".

- If you revert the change back to "Hide the Create site command", the default returns to "/Sites/".

 

Hope that helps!

Highlighted

Thanks for the link to the related post. I have the same requirement as mentioned by Darren. We would like to use both paths /teams and /sites. Changing the default doesn't help.

Highlighted
Did you ever find a solution for this? I agree that having every possible create group command (whether Graph or PNP) just lean on the default tenant setting is worthless.

By default sites created through the SharePoint interface should have defaulted to /sites/ and teams created through the teams interface should have defaulted to /teams/. At least that would have been logical.

But more so I want the option to specify the URL of the site/group/team that I'm generating with powershell (like it has always been). The absence of this parameter has caused us hundreds of lines of code working around this mess to create a disconnected site, turn it into a group and then a team.