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.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Network engineer with a laptop beside a server rack
1 · MapWe record the public addresses and countries you really work from.

Microsoft 365 Best Practices Library › Identity and sign-in › Named locations

What it isA saved list of public IP address ranges or countries that Conditional Access policies can include or exclude.
Where it livesMicrosoft Entra admin center › Entra ID › Conditional Access › Named locations
License neededNamed locations are part of Conditional Access, which needs Microsoft Entra ID P1 (Business Premium, E3, E5).
Time to set upAbout an hour to define and document; a short check after every network or office change.
Risk if missingMedium A wrong or outdated location either blocks real staff or quietly trusts a network you no longer control.

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

The right roleAt least Conditional Access Administrator to create and update named locations.
Your public IP addressesFor each office: the address or range your internet provider assigned, and whether it is static. Your provider or firewall shows it.
Where people really workThe countries staff, contractors and travelling managers sign in from. The sign-in logs will tell you.
Emergency access accountsExcluded from any policy that blocks by location, so a mistake in a range cannot lock out every administrator.

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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

    TestExpected result
    Staff member, office IPNot blocked; trusted location matched
    Staff member, home IP in an allowed countryNot blocked; MFA required by your MFA policy
    Any user, IP in a country not on the allow listBlocked
    Emergency access account, any locationPolicy not applied (excluded)
  6. 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.

FieldExampleWhy it is needed
NameOffice Irvine HQ (static)Matches the name in Microsoft Entra ID.
Type and trusted markIP ranges, trustedTrusted locations carry more weight; they need more care.
RangesOne /32 IPv4 address, one /64 IPv6 rangeSo the network team can compare with the firewall.
SourceInternet provider contract, static addressShows the range is assigned to you.
Used byCA006 Block countries; CA007 MFA outside trusted networksShows what a change will affect.
Owner and last checkedIT lead, checked this quarterSomeone 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

SettingRecommended valueWhy
Office networksOne IP ranges location per site, static addresses onlyEasy to change one site without touching the others.
Mark as trustedOnly networks you controlA trusted mark lowers scrutiny; it must be earned.
Home and public networksNever trustedYou do not control who else is on them.
Country ruleAllow list of the countries you work inShorter and easier to keep correct than a block list.
Unknown countries/regionsDecide on purpose and record the choiceUnmapped addresses otherwise fall on the wrong side by accident.
GPS-based locationOnly for very sensitive appsIt prompts users every hour.
ExclusionsEmergency access groupA wrong range must not lock out every administrator.
Legacy MFA trusted IPsNot usedMicrosoft 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

ItemLimit or behavior
Named locations per tenantNo more than 195
IP ranges per named locationNo more than 2,000
Smallest allowed CIDR maskGreater than /8
When location is checkedAt sign-in, and when an app renews its token, by default about once an hour
After leaving the office networkThe policy is enforced within about an hour for modern apps
Deleted locations and policiesCan 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

CapabilityLicense
Named locations and location-based Conditional AccessMicrosoft 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 P1Security 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.

Ali Hassani, CISSP and Certified CISO, IT Perfection

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.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

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.

Entra ID and Conditional Access

MFA, sign-in rules and admin roles set up the right way.

View service

Hybrid identity and Entra Connect

On-premises Active Directory and Entra ID kept in sync.

View service

Business password manager rollout

A company password manager deployed and adopted by staff.

View service