SOLVED

How did someone activate Team for SharePoint online ?

%3CLINGO-SUB%20id%3D%22lingo-sub-2055956%22%20slang%3D%22en-US%22%3EHow%20did%20someone%20activate%20Team%20for%20SharePoint%20online%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2055956%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20few%20SharePoint%20online%20pages%20where%20i%20do%20not%20want%20teams%20to%20be%20activated.%20I%20have%20with%20the%20script%20bellow%20tried%20to%20remove%20the%20ability%20for%20owners%20and%20administrators%20as%20best%20as%20i%20can%20to%20be%20able%20to%20activate%20teams%20but%20even%20so%20someone%20still%20managed%20to%20activate%20teams%20for%20one%20SharePoint%20site%20and%20i%20would%20like%20to%20know%20if%20anyone%20can%20describe%20how%20he%20could%20have%20managed%20to%20do%20it(he%20do%20not%20know%20himself)%20even%20with%26nbsp%3BTeamify%20set%20to%20hidden%20so%20i%20can%20inform%20everyone%20what%20not%20to%20do%20%2F%20click%20on.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%23Variables%3C%2FP%3E%3CP%3E%24SiteURL%20%3D%20%22%3CA%20href%3D%22https%3A%2F%2Fcrescent.sharepoint.com%2Fsites%2FCredit%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fcontoso.sharepoint.com%2Fsites%2FContoso%3C%2FSPAN%3E%3C%2FA%3E%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%23Connect%20to%20PnP%20Online%3C%2FP%3E%3CP%3EConnect-PnPOnline%20-URL%20%24SiteURL%20-UseWebLogin%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%23Update%20the%20Property%20bag%20key%20to%20remove%20Teams%20Prompt%3C%2FP%3E%3CP%3ESet-PnPPropertyBagValue%20-Key%20%22TeamifyHidden%22%20-Value%20%22True%22%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2055956%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esharepoint%20online%20MS%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%20Office%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2056006%22%20slang%3D%22en-US%22%3ERe%3A%20How%20did%20someone%20activate%20Team%20for%20SharePoint%20online%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056006%22%20slang%3D%22en-US%22%3EHi%2C%20I%20suppose%20you%E2%80%99ve%20already%20done%20this%3F%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsolutions%2Fmanage-creation-of-groups%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsolutions%2Fmanage-creation-of-groups%3Fview%3Do365-worldwide%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20verify%20that%20Teamify%20is%20disabled%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20for%20the%20creation%20of%20Teams%20it%E2%80%99s%20possible%20as%20they%20are%20already%20up%20and%20running%20so%20to%20speak.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2056010%22%20slang%3D%22en-US%22%3ERe%3A%20How%20did%20someone%20activate%20Team%20for%20SharePoint%20online%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056010%22%20slang%3D%22en-US%22%3EPresuming%20you%20had%20disabled%20DenyAddAndCustomizePages%20before%20toggling%20TeamifyHidden%20to%20True%2C%20is%20it%20possible%20that%20the%20user%20created%20a%20Teams%20which%20then%20automatically%20created%20a%20SharePoint%20site%20(and%20not%20the%20other%20way%20around)%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2056155%22%20slang%3D%22en-US%22%3ERe%3A%20How%20did%20someone%20activate%20Team%20for%20SharePoint%20online%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056155%22%20slang%3D%22en-US%22%3ENo.%20the%20SharePoint%20site%20had%20existed%20for%20several%20months%20and%20we%20had%20Teamify%20disabled%20on%20it%20since%20creation.%20One%20day%20it%20just%20popped%20up%20in%20the%20desktop%20client%2C%20that's%20how%20we%20noticed%20that%20it%20had%20been%20activated%20by%20the%20user%20in%20question.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2058092%22%20slang%3D%22en-US%22%3ERe%3A%20How%20did%20someone%20activate%20Team%20for%20SharePoint%20online%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2058092%22%20slang%3D%22en-US%22%3EIn%20the%20SharePoint%20site%20actions%20menu%20(gear)%2C%20there%20is%20an%20option%20to%20%E2%80%9CConnect%20to%20new%20Office%20365%20group%E2%80%9D.%20Once%20the%20group%20is%20created%20(or%20if%20it%20had%20already%20been%20created%20in%20the%20past)%2C%20you%20can%20then%20create%20a%20new%20Teams%20from%20the%20existing%20group.%20Now%20the%20SharePoint-Group-Teams%20are%20all%20interconnected.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2058663%22%20slang%3D%22en-US%22%3ERe%3A%20How%20did%20someone%20activate%20Team%20for%20SharePoint%20online%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2058663%22%20slang%3D%22en-US%22%3EYou%20cannot%20avoid%20with%20the%20script%20that%20users%20can%20create%20the%20Team%20in%20the%20Teams%20client%20by%20using%20the%20option%20%22Create%20from%20an%20existing%20Group%22%3C%2FLINGO-BODY%3E
Contributor

Hello

 

I have a few SharePoint online pages where i do not want teams to be activated. I have with the script bellow tried to remove the ability for owners and administrators as best as i can to be able to activate teams but even so someone still managed to activate teams for one SharePoint site and i would like to know if anyone can describe how he could have managed to do it(he do not know himself) even with Teamify set to hidden so i can inform everyone what not to do / click on.

 

#Variables

$SiteURL = "https://contoso.sharepoint.com/sites/Contoso"

 

#Connect to PnP Online

Connect-PnPOnline -URL $SiteURL -UseWebLogin

 

#Update the Property bag key to remove Teams Prompt

Set-PnPPropertyBagValue -Key "TeamifyHidden" -Value "True"

5 Replies
Hi, I suppose you’ve already done this? https://docs.microsoft.com/en-us/microsoft-365/solutions/manage-creation-of-groups?view=o365-worldwi...

Can you verify that Teamify is disabled?

As for the creation of Teams it’s possible as they are already up and running so to speak.
Presuming you had disabled DenyAddAndCustomizePages before toggling TeamifyHidden to True, is it possible that the user created a Teams which then automatically created a SharePoint site (and not the other way around)?
No. the SharePoint site had existed for several months and we had Teamify disabled on it since creation. One day it just popped up in the desktop client, that's how we noticed that it had been activated by the user in question.
In the SharePoint site actions menu (gear), there is an option to “Connect to new Office 365 group”. Once the group is created (or if it had already been created in the past), you can then create a new Teams from the existing group. Now the SharePoint-Group-Teams are all interconnected.
best response confirmed by michaelsjodin (Contributor)
Solution
You cannot avoid with the script that users can create the Team in the Teams client by using the option "Create from an existing Group"