Language:EN
Let's talk
← Back to insightsInsights

Limit access by location in Entra ID using Conditional Access

Reading time: 3 min ·

Learn how to limit access by location in Entra ID using Conditional Access to protect Microsoft 365

With identity attacks and unauthorised access becoming ever more frequent, protecting access to Microsoft 365 has become a strategic priority for organisations.

One of the most effective measures is to limit access by location in Entra ID using Conditional Access, so that only trusted IP addresses or locations can authenticate.

This approach significantly reduces the attack surface, especially against threats such as credential theft, token hijacking and brute-force attacks, strengthening the organisation's security posture.

Why limit access by location in Entra ID using Conditional Access?

Limiting access by location in Entra ID using Conditional Access restricts authentication attempts to specific geographic locations or IP addresses, drastically reducing the risk of improper access.

With Microsoft Entra ID, administrators can:

  • Allow access only from trusted locations or IP addresses.
  • Block authentication attempts from specific countries, regions or IPs.
  • Apply additional controls, such as multi-factor authentication (MFA), depending on where the access comes from and the resource requested.

This approach aligns with modern security models such as Zero Trust, where no access is trusted by default.

Configuration requirements

Before implementing policies to limit access by location in Entra ID using Conditional Access, the following technical requirements must be met:

Licensing

  • Microsoft Entra ID P1 or higher
  • Included in plans such as Microsoft 365 E3/E5 or Business Premium

Required roles

  • Conditional Access Administrator
  • Global Administrator
  • Security Administrator

Important considerations

An incorrect configuration can block legitimate access and disrupt the business. That is why it is essential to plan, validate and test the policies before enabling them in production.

How to limit access by location in Entra ID using Conditional Access

Below is the configuration process for limiting access to trusted locations across the whole organisation.

1. Define trusted locations

  • Open the Microsoft Entra admin center
  • Navigate to: Protection → Conditional Access → Named locations
  • Create the locations you need, giving each a descriptive name (e.g. ES and AVD)
  • Add IP address ranges or define a geographic location
  • Mark it as a trusted location where appropriate

2. Create a Conditional Access policy

  • Go to: Conditional Access → Policies → New policy
  • Configure the affected users or groups
  • Target resources (e.g. All resources, Office 365 or Exchange Online)

3. Configure location conditions

  • Under Conditions → Locations, include: Any location
  • Exclude: trusted locations
  • Select the access control: Block access
Location conditions in a Conditional Access policy Trusted locations excluded from the policy

4. Enable the policy safely

  • Initially, set it to Report-only mode (recommended)
  • After validating the results, switch it to On
Conditional Access policy in Report-only mode

Additional recommendations

To get the most out of limiting access by location in Entra ID using Conditional Access, we recommend the following best practices:

  • Exclude emergency accounts (break glass accounts)
  • If access from untrusted locations is allowed, require MFA or Authentication Strength
  • Review sign-in logs regularly
  • Analyse blocked attempts to detect attack patterns
  • Continuously validate the identity and context of each access
  • Validate all policies in report-only mode before enabling them

About the author:
Kevin Maldonado, LinkedIn

Cybersecurity technician at Allbit Solutions, specialising in protecting Microsoft 365 environments and endpoints. He holds Microsoft certifications in identity and security administration (Identity and Access Administrator Associate, 2025; Azure Security Engineer Associate, 2024), among other credentials.

Shall we talk about your Microsoft environment?

Talk to a specialist →