How to Disable Microsoft Teams “Create a Team” Prompt in SharePoint Online?

Requirement: Disable the “Microsoft Teams” prompt on SharePoint Online site.

On Office 365 group connected modern SharePoint team sites, SharePoint displays a banner on the bottom left of the screen asking users to connect to Microsoft Teams to easily Teamify an existing site, which confused users. If the user clicks the link, the site will be converted to Microsoft Teams, So we wanted to hide the teams popup! 

disable microsoft teams prompt in sharepoint online

How to Disable Create Team prompt in SharePoint Online?

This msg appears to any Office 365 Group owner where a Team has not been associated with a SharePoint Online site. In our environment, We use Office 365 Groups and don’t want users to convert a Group to a Team before they are trained on how to use Microsoft Teams. So, we wanted to remove the message to create Microsoft Teams, displayed when they access modern sites in SharePoint Online. Here is how we can disable teams prompt in the SharePoint Online site by setting the property bag value:

$SiteURL = ""

#Connect to PnP Online
Connect-PnPOnline -URL $SiteURL -Interactive

#Update the Property bag key to remove Teams Prompt
Set-PnPPropertyBagValue -Key "TeamifyHidden" -Value "True"

This PowerShell script hides the Teamify popup on SharePoint Online site.

Please note, You must Enable custom scripting in SharePoint Online prior to setting the property bag value. Otherwise, you’ll see an error message, “Set-PnPPropertyBagValue : Access denied. You do not have permission to perform this action or access this resource. Site might have NoScript enabled, this prevents setting some property bag values.”.

Remove Create Team Popup from Microsoft Teams for All Sites

How to remove the temify prompt for all site collections in SharePoint Online? As of today, there are no ways to disable this prompt tenant-wide, and it must be disabled on a Site Collection by Site Collection basis.

$TenantURL =  ""
#Get Credentials to connect
$Credential = Get-Credential
#Frame Tenant Admin URL from Tenant URL
$TenantAdminURL = $TenantURL.Insert($TenantURL.IndexOf("."),"-admin")

#Connect to Admin Center
Connect-PnPOnline -Url $TenantAdminURL -Credentials $Credential
#Get All Site collections - Filter out BOT, MySite Host and Content type hub
$Sites = Get-PnPTenantSite -Filter "Url -like '$TenantURL' -and Url -notlike 'portals/hub'"

#Iterate through all sites
$Sites | ForEach-Object {
    Write-host "Processing Site Collection:"$_.URL
    #Connect to each site collection
    Connect-PnPOnline -Url $_.URL -Credentials $Credential

    #Disable Create Teams Prompt
    Set-PnPPropertyBagValue -Key "TeamifyHidden" -Value "True"
    Write-host "`tDisabled Teams Prompt Successfully!" -f Green

This PowerShell script sets a property bag value of “TeamifyHidden” to true for all site collections in the tenant. Hit refresh and the dialog box to create Teams should no longer appear on the homepage!


In conclusion, disabling the Microsoft Teams “Create a Team” prompt in SharePoint Online sites can help to streamline the user experience and prevent unnecessary clutter in Microsoft Teams. By following the steps outlined in this guide, you should now be able to disable the prompt for users, giving you more control over the number of teams that are created within your organization. However, it’s important to note that disabling this prompt may also affect the collaboration and productivity within the organization, it is recommended to evaluate the pros and cons before taking any decision. It is always a good practice to have a balance between collaboration and management in any organization. Additionally, you may want to consider creating guidelines or policies for team creation and management to ensure that teams are created and managed in an organized and efficient manner.

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

3 thoughts on “How to Disable Microsoft Teams “Create a Team” Prompt in SharePoint Online?

  • This script also did not work for me. I opened a ticket with Microsoft and they responded with the following

    “We had a discussion with our product group and got update that this feature got updated recently due to which this cannot be removed.

    Earlier update was working fine with that PowerShell but in recent update this may not work as Product group confirmed that there is no way to remove that option from Site collection.

    You may find any alternative or workaround to remove this option in future but currently there is no option for the same.”

  • Thanks for your wonderful blog. It is my daily cup of joe so to speak. This tip about Teamifyhidden – it does not work. I have AddAndCustomizePages disabled and the property bag value sets fine. However, it has no effect.

    • I tried reproducing this issue from my side, and found no issues. Can you try cleaning your browser cache-cookies once?


Leave a Reply

Your email address will not be published. Required fields are marked *