en-US edge computer user

Restrict which accounts can be used to sign in to Microsoft Edge

Verified with Microsoft Edge 152.0.4191.53 — updated on July 12, 2026

Microsoft Edge 152.0.4191.53

Supported on: Microsoft Edge version 77, Windows 7 or later

Path in the GPO console

Computer Configuration\Administrative Templates\Microsoft Edge

Description

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

HKLM Software\Policies\Microsoft\Edge
HKCU Software\Policies\Microsoft\Edge

More options available

Options

Restrict which accounts can be used to sign in to Microsoft Edge
RestrictSigninToPattern text

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO.

Scope

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Restrict which accounts can be used to sign in to Microsoft Edge
; State: Enabled
; Scope: Computer (HKLM)
; Supported on: Microsoft Edge version 77, Windows 7 or later

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Edge]
"RestrictSigninToPattern"=""
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Restrict which accounts can be used to sign in to Microsoft Edge
# State: Enabled
# Scope: Computer (HKLM)
# Supported on: Microsoft Edge version 77, Windows 7 or later

$path = 'HKLM:\Software\Policies\Microsoft\Edge'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'RestrictSigninToPattern' -Value '' -Type String

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview