Restrict sign in to Teams to accounts in specific tenants: registry value restrictteamssignintoaccountsfromtenantlistUserHKCU\software\policies\microsoft\office\16.0\teams
- Policy ID
- String_Teams_SignInRestriction_Policy
- Scope
- User Configuration
- Supported on
- At least Windows Server 2008 R2 or Windows 7
- Source
- Microsoft 365 Apps / Office Administrative Templates (version 5568.1000)
- Category
- Microsoft Teams
Registry
restrictteamssignintoaccountsfromtenantlist
REG_SZUser- Enabled value
- Depends on the option value
- Element
- Tenant IDs:
- Value type
- REG_SZ
- Required
- true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\software\policies\microsoft\office\16.0\teams] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "restrictteamssignintoaccountsfromtenantlist"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKCU\software\policies\microsoft\office\16.0\teams" /v "restrictteamssignintoaccountsfromtenantlist" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKCU:\software\policies\microsoft\office\16.0\teams' -Force | Out-Null New-ItemProperty -Path 'HKCU:\software\policies\microsoft\office\16.0\teams' -Name 'restrictteamssignintoaccountsfromtenantlist' -PropertyType String -Value '<enter value>' -Force | Out-Null