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!

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!

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

  • 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.