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

Requirement: Disable “Microsoft Teams” prompt in 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 caused confusion to users. If the user clicks the link, the site will be converted to Microsoft Teams, So we wanted to hide 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 -UseWebLogin

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

This PowerShell script hides Teamify popup in SharePoint Online site.

Please note, You must Enable custom scripting in SharePoint Online prior to setting the property bag value, otherwise, you’ll see 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. 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
    $SiteConn = Connect-PnPOnline -Url $_.URL -Credentials $Credential -ReturnConnection

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

    Disconnect-PnPOnline -Connection $SiteConn

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 is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply