Skip to main content

โš™๏ธ๐ŸชŸ๐Ÿ’ปCP - Edge - Block non-company accounts

One browser, one company identity. Edge will accept a sign-in from your domain and turn away the Entra account someone brought from their last job.

โš™๏ธType Configuration profile๐ŸชŸPlatform Windows๐Ÿ’ปTarget Devices
reference-build ยท edge-block-non-company-accountsGolden Master reference
License tier
Business Premium (Intune)
Control plane
Intune Settings Catalog
Scope
Windows, all devices
Reversibility
clean-revert

What this policy is about ๐Ÿชชโ€‹

Edge will happily sign in as a profile for any Entra account, including one from a completely different organization. This policy pins that down: only accounts from the domain you specify can become an Edge primary account. Everyone else is refused at the door.

It works off a match pattern, and the value is your customer's own domain. Like a tenant ID, that pattern is a per-environment value, never a constant baked into a blueprint that ships to every tenant.

๐Ÿค” It restricts the browser profile, not the person

This does not stop anyone from visiting a website or logging into a web app. It stops them from signing the managed browser itself into an outside company's identity, which is the part that drags another tenant's sync, policies, and data onto your device.

Why this matters ๐Ÿ•ต๏ธโ€‹

When a user signs Edge into another organization's Entra account, that browser becomes a little outpost of a tenant you do not manage. Their bookmarks, history, and saved data sync in and out through controls you have never seen, on a device you are responsible for. Add a departing employee who signs into their next employer's account, and now two companies' identities share one managed browser. Nobody meant for that to happen; the browser just said yes.

Restricting sign-in to your own domain keeps the managed browser tied to the identity you actually govern. Collaboration with other orgs still happens the proper way, through guest access and shared apps, not by a second company's account moving in.

๐Ÿ› ๏ธ Configurationโ€‹

Where: Intune admin center โ†’ Devices โ†’ Configuration โ†’ Create โ†’ Windows โ†’ Settings catalog โ†’ Microsoft Edge.

SettingValue
Restrict which accounts can be used to sign in to Microsoft EdgeEnabled
Restrict which accounts can be used as Microsoft Edge primary accounts (Device)Per-tenant domain pattern, e.g. .*@company\.com
Assignment, includeAll devices
Assignment, excludeNone (standard exclusions only)

The pattern is a regular expression matched against the account. Set it to the customer's real domain, escape the dot (\.), and for multiple domains combine them (.*@company\.com|.*@company\.be). A hardcoded domain shipped to every tenant either locks the wrong people out or lets the wrong people in.

Caveats โš ๏ธโ€‹

Never ship a hardcoded domain. This is the exact mistake that turns a rollout into an incident: paste one customer's domain into the blueprint and every other tenant restricts to a company that is not theirs. Use a per-environment value so each tenant matches itself.

Get the pattern right or you lock everyone out. A bad regex, or a forgotten domain a customer also uses, blocks legitimate sign-ins. Test the pattern against the tenant's actual domains before you assign it broadly.

Multi-domain and rebrands need a review. Tenants pick up new domains through mergers and rebrands. When they do, this pattern has to be updated, or the new domain's users cannot sign in.

License and reversibility. Included in Business Premium. Clean-revert: unassign and Edge returns to accepting any account on the next policy refresh.


You shall not pass, says the browser, to every account that is not on the domain. Corporate collaboration still gets the guest door; a second tenant does not get to move in. ๐Ÿชช