Open in the explorer

Restrict sign in to Teams to accounts in specific tenants

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Microsoft Teams
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
teams16.admx
Internal name
teams16/String_Teams_SignInRestriction_Policy

Explanation

This policy setting allows you to control the accounts that can be used in Teams on managed devices running Windows.

If you enable this policy setting, users will only be allowed to sign in with accounts from Azure Active Directory (Azure AD) tenants that you specify. You can enter a comma separated list of tenant IDs.

The policy setting applies to all ways that the user signs in, including first and additional accounts on versions of Teams that support multiple accounts side by side.

The policy setting is also enforced when users sign out and sign back in.

If you disable or don't configure this policy setting, Teams will continue to allow users to sign in with work or school accounts, or personal Microsoft accounts.

Important: This policy setting only restricts which users can sign in. It does not restrict the ability for users to be invited as a guest in other Azure AD tenants, or switch to tenants they were invited to.

Note: This policy does not apply to Teams web app.

Registry

HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\teams
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: teams16/String_Teams_SignInRestriction_Policy
$k = 'HKCU:\software\policies\microsoft\office\16.0\teams'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Tenant IDs
Set-ItemProperty -Path $k -Name 'restrictteamssignintoaccountsfromtenantlist' -Value '<value>' -Type String

Disable

# Disable: teams16/String_Teams_SignInRestriction_Policy
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": teams16/String_Teams_SignInRestriction_Policy
$k = 'HKCU:\software\policies\microsoft\office\16.0\teams'
Remove-ItemProperty -Path $k -Name 'restrictteamssignintoaccountsfromtenantlist' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Tenant IDs:RestrictTeamsSignInToAccountsFromTenantListText boxtextrestrictteamssignintoaccountsfromtenantlistREG_SZ
Required

Application

Microsoft 365 Apps / Office (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.