Microsoft 365 Best Practices Library · Identity and sign-in
Microsoft Entra named locations guide
A named location tells Microsoft Entra ID which networks and countries your organization really uses. Conditional Access policies can then treat a sign-in from the office differently from one on the other side of the world. This guide shows how to define locations correctly, use them in policies without locking people out, and keep the list accurate as your network changes.
Prefer to have it done for you? IT Perfection provides Entra ID and Conditional Access setup for companies in Irvine, Orange County and Los Angeles County.
Written by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026



Microsoft 365 Best Practices Library › Identity and sign-in › Named locations
Why it matters
Where a sign-in comes from is a useful clue, not proof
If nobody in your company works outside the United States, a sign-in from another continent deserves a second look. If a sign-in comes from your own office network, it is a little more likely to be genuine. Named locations are how you teach Microsoft Entra ID those facts, so that policies can act on them.
Microsoft gives two common uses: requiring MFA when people are away from the corporate network, and blocking access from countries your organization never operates from. Both are worth having. Neither is a substitute for MFA. An attacker can rent a server or a VPN exit in almost any country, and a member of staff on a hotel network is still a member of staff. Treat location as one signal that sharpens other controls.
The risk in this setting is not in creating locations. It is in what happens later. An office moves, the internet provider changes the address, a VPN service is replaced, and the list in Microsoft Entra ID still describes last year’s network. That is why this page talks about governance: a named owner, a register, and a check after every change.
What you can define
Two kinds of named location
Only an IP ranges location can be marked as trusted. Microsoft uses that mark in two ways: policies can include or exclude “all trusted locations”, and sign-ins from trusted locations improve the accuracy of the risk calculation in Microsoft Entra ID Protection. Mark as trusted only the networks your organization really controls, such as an office with its own firewall. A home internet connection, a co-working space or a consumer VPN service is not one of them.
For country locations, deciding by IP address is the normal choice. The GPS option asks the Microsoft Authenticator app for the phone’s position every hour and prompts the user; Microsoft advises using it only for very sensitive apps where that behavior is acceptable.
Before you start
What to have ready
If an office has a dynamic address that changes from time to time, do not build a policy that depends on it. Ask your provider for a static address, or base the policy on device compliance.
Step by step
Set up named locations in six steps
Find out where sign-ins come from today
Microsoft Entra admin center › Entra ID › Monitoring & health › Sign-in logs
Before you define anything, look at 30 days of successful sign-ins and group them by country and by IP address. You will see your offices, home workers, mobile networks and travel. Write down the countries that appear for good reasons. This list is what stops you blocking a real person on the first day.
Create an IP ranges location for each office
Microsoft Entra admin center › Entra ID › Conditional Access › Named locations › IP ranges location
Give it a name that says what it is, for example Office Irvine HQ (ISP name, static). Add the public range in CIDR notation; a single address is written with /32. Microsoft accepts only masks greater than /8. Select Mark as trusted location only for networks you control. Create one location per site and do not combine them in one long list, so that each can be changed or removed on its own.
Illustration with sample names, not a screenshot. One location per site, with names that explain themselves.Entra admin center / Conditional Access / Named locationsIllustrationOverviewPoliciesNamed locationsAuthentication strengthsWhat IfInsightsConditional Access › Named locationsLocationsName Type Trusted Office Irvine HQ (static) IP ranges Yes Office Los Angeles (static) IP ranges Yes Company VPN exit IP ranges Yes Countries: allowed Countries (IP) No Countries: blocked Countries (IP) No Create a countries location
Named locations › Countries location
Choose Determine location by IP address and select the countries. You can build it as an allow list (the countries you work in) or a block list (countries you never work in). For most small organizations the allow list is shorter and safer to maintain. Decide deliberately about Include unknown countries/regions: some addresses cannot be mapped to a country, and this box controls whether they count as part of the location.
Use the locations in a policy, in report-only mode
Microsoft Entra admin center › Entra ID › Conditional Access › Policies › New policy
A typical policy: all users, all resources, Network set to Any network or location with your allowed countries location excluded, grant set to Block access. Exclude the emergency access group. Microsoft notes that the Location condition has been renamed Network. Save the policy in Report-only mode first; Microsoft describes location-based blocking as restrictive and says it should be done with care after thorough testing.
Test with What If, then read the report-only results
Microsoft Entra admin center › Entra ID › Conditional Access › What If
The What If tool lets you enter a user, an app, a country or an IP address and see which policies would apply. Test at least four cases: the office address, a home address in an allowed country, an address in a blocked country, and an emergency access account. Then leave the policy in report-only mode for one to two weeks and look at the Report-only tab of real sign-ins for anyone who would have been blocked.
Test Expected result Staff member, office IP Not blocked; trusted location matched Staff member, home IP in an allowed country Not blocked; MFA required by your MFA policy Any user, IP in a country not on the allow list Blocked Emergency access account, any location Policy not applied (excluded) Switch on, and write the register
Change the policy to On. Then record every named location in a simple register: name, what it is, the ranges, who confirmed them, the date, and which policies use it. Add one line to your change checklist: “Internet provider, firewall, VPN or office changed? Update named locations.” This step is the one that keeps the setting right next year.
Governance
A location register a network engineer can check
The admin center shows names and ranges. It does not show why a range is there, who asked for it or whether it is still yours. A one-page register answers those questions and takes minutes to keep up to date.
| Field | Example | Why it is needed |
|---|---|---|
| Name | Office Irvine HQ (static) | Matches the name in Microsoft Entra ID. |
| Type and trusted mark | IP ranges, trusted | Trusted locations carry more weight; they need more care. |
| Ranges | One /32 IPv4 address, one /64 IPv6 range | So the network team can compare with the firewall. |
| Source | Internet provider contract, static address | Shows the range is assigned to you. |
| Used by | CA006 Block countries; CA007 MFA outside trusted networks | Shows what a change will affect. |
| Owner and last checked | IT lead, checked this quarter | Someone is responsible and the date is visible. |
Review the register every quarter and after any network change. Remove locations that are no longer used by a policy. A location marked as trusted cannot be deleted until the trusted mark is removed, which is a useful pause to ask whether anything still depends on it.
Recommended values
Named location settings at a glance
| Setting | Recommended value | Why |
|---|---|---|
| Office networks | One IP ranges location per site, static addresses only | Easy to change one site without touching the others. |
| Mark as trusted | Only networks you control | A trusted mark lowers scrutiny; it must be earned. |
| Home and public networks | Never trusted | You do not control who else is on them. |
| Country rule | Allow list of the countries you work in | Shorter and easier to keep correct than a block list. |
| Unknown countries/regions | Decide on purpose and record the choice | Unmapped addresses otherwise fall on the wrong side by accident. |
| GPS-based location | Only for very sensitive apps | It prompts users every hour. |
| Exclusions | Emergency access group | A wrong range must not lock out every administrator. |
| Legacy MFA trusted IPs | Not used | Microsoft does not recommend this older setting. |
Check that it works
How to confirm the result
- A sign-in from the office shows the location. Open a recent sign-in from the office; the record shows the named location and that it is trusted.
- A test from a blocked country is refused. Use the What If tool, or a test account through a VPN exit in a country that is not allowed.
- Nobody real was caught. The report-only results showed no legitimate user who would have been blocked.
- The emergency account still works. Sign in with it from outside the office.
- The register matches the tenant. Every location in the admin center has a line in the register, and the reverse.
Mistakes and rollback
Common mistakes, and how to step back
- Using private addresses. Ranges like 10.x or 192.168.x never match. Microsoft Entra ID sees the public address your network uses on the internet.
- Trusting too much. Marking home networks, guest Wi-Fi or a shared office building as trusted weakens every policy that relies on the mark.
- Skipping MFA inside the office. A device on the office network can be infected too. Location can reduce prompts; it does not replace MFA.
- Forgetting the provider changed the address. Staff are suddenly “outside” the office, or an old address that someone else now holds is still trusted.
- Blocking a country a traveller is in. Check the sign-in history and ask about travel before switching the policy on.
- Relying on location with a cloud proxy or VPN. Microsoft Entra ID then sees the address of the proxy, not of the user. Device-based policies are easier to manage in that case.
- Treating a block list as protection against attackers. Attackers can choose where they appear to be. It removes noise; it does not remove risk.
To roll back: if real users are blocked, set the policy to Report-only; access returns for new sign-ins while you correct the location. A named location or policy deleted by mistake can be restored within Microsoft’s 30-day soft-delete period.
Limits
Limits and timing to know
| Item | Limit or behavior |
|---|---|
| Named locations per tenant | No more than 195 |
| IP ranges per named location | No more than 2,000 |
| Smallest allowed CIDR mask | Greater than /8 |
| When location is checked | At sign-in, and when an app renews its token, by default about once an hour |
| After leaving the office network | The policy is enforced within about an hour for modern apps |
| Deleted locations and policies | Can be restored within 30 days |
Source: Conditional Access: Network assignment, Microsoft Learn. Microsoft changes limits and menu names from time to time; check the page before you rely on a number.
Licenses
Which plan gives you what
| Capability | License |
|---|---|
| Named locations and location-based Conditional Access | Microsoft Entra ID P1 |
| Risk calculation that uses trusted locations (ID Protection) | Microsoft Entra ID P2 |
| Compliant network check (Global Secure Access) | Microsoft Entra Suite or the relevant Global Secure Access license |
| Tenants without P1 | Security defaults; no location rules |
Plans and names change; check the current Microsoft Entra licensing page before you buy anything.
Have us do it
Prefer to hand this off?
IT Perfection sets up named locations for companies in Irvine, Orange County and Los Angeles County: a review of where sign-ins really come from, clearly named locations, policies tested in report-only mode, and a register your network and IT people can both read. You receive a written scope and a written quote before any work starts.
Next in the library
Related guides
Want a quick self-check first? Try the free Entra ID security assessment tool. For a formal written audit of Microsoft Entra ID, OC Security Audit, our related cybersecurity brand also led by Ali Hassani, does that work.

Who does the work
Written by Ali Hassani, CISSP, C|CISO
Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.
This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.








FAQ
Microsoft Entra named locations: common questions
What is a named location in Microsoft Entra ID?
A named location is a saved set of public IP address ranges or countries. Conditional Access policies can include or exclude named locations, for example to block sign-ins from countries where the organization does not operate.
What does marking a location as trusted do?
Policies can refer to all trusted locations at once, and sign-ins from trusted locations improve the accuracy of the risk calculation in Microsoft Entra ID Protection. Only networks the organization controls should be marked as trusted.
Should I block countries in Microsoft 365?
Blocking countries you never work from reduces unwanted sign-in attempts and is a reasonable control. It is not a replacement for MFA, because an attacker can appear to sign in from an allowed country.
Can I skip MFA for people in the office?
It is technically possible, but not recommended as a general rule. A compromised device inside the office would then sign in with a password alone. Use location to reduce risk, not to remove MFA.
How many named locations can I create?
Microsoft allows no more than 195 named locations, with no more than 2,000 IP ranges in each.
Why does Microsoft Entra ID show the wrong location for a user?
Location is estimated from the public IP address. Mobile networks, VPN services and cloud proxies can make a user appear to be somewhere else. Confirm with the person before acting.
Do named locations need a special license?
Yes. Named locations are used by Conditional Access, which requires Microsoft Entra ID P1, included in Microsoft 365 Business Premium, E3 and E5.
Need this done for your business?
IT Perfection plans, installs and supports this for companies in Irvine and Orange County
The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.
Hybrid identity and Entra Connect
On-premises Active Directory and Entra ID kept in sync.
View serviceBusiness password manager rollout
A company password manager deployed and adopted by staff.
View service