How did someone activate Team for SharePoint online ?

Brass Contributor



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.



$SiteURL = ""


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

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 (Brass Contributor)
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"