Restrict which accounts can be used to sign in to Microsoft Edge
Explanation
Determines which accounts can be used to sign in to the Microsoft Edge account that's chosen during the Sync opt-in flow.
You can configure this policy to match multiple accounts using a Perl style regular expression for the pattern. If a user tries to sign in to the browser with an account whose username doesn't match this pattern, they're blocked and will get the appropriate error message. Pattern matches are case sensitive. For more information about the regular expression rules that are used, see https://go.microsoft.com/fwlink/p/?linkid=2133903.
If you don't configure this policy or leave it blank, users can use any account to sign in to Microsoft Edge.
Signed-in profiles with a username that doesn't match this pattern will be signed out after this policy is enabled.
Example value: .*@contoso.com
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- 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.
Computer (HKLM)
Enable
# Enable: msedge/RestrictSigninToPattern
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Restrict which accounts can be used to sign in to Microsoft Edge
Set-ItemProperty -Path $k -Name 'RestrictSigninToPattern' -Value '<value>' -Type StringDisable
# Disable: msedge/RestrictSigninToPattern
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/RestrictSigninToPattern
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'RestrictSigninToPattern' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Restrict which accounts can be used to sign in to Microsoft EdgeRestrictSigninToPattern | Text boxtext | RestrictSigninToPattern | REG_SZ | Max length: 1000000 |
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.