Conditional Access Problems

How to Block Non-US Sign-Ins Using Microsoft 365 Conditional Access

Maira MehtabMaira Mehtab Nov 3, 2026 870 views

Question details

The organization needs to restrict internal licensed users from signing in outside the United States, while ensuring international guest users can still access shared resources.

How to Block Non-US Sign-Ins Using Microsoft 365 Conditional Access
Product
Microsoft Entra ID (Azure AD)
Device & OS
not provided
Scenario
Administrators want to enforce regional sign-in restrictions for specific user groups to enhance security, without disrupting external collaborations.
Observed behavior
The organization requires a policy that blocks foreign sign-ins for internal licensed Microsoft 365 E5 users but explicitly excludes guest accounts from this restriction.
Before you start

Ensure you are signed into the Microsoft Entra admin center as a Conditional Access Administrator or Global Administrator, and verify your tenant has active Microsoft Entra ID Premium P1 or P2 licenses.

Solution 1Recommended

Create a Location-Based Conditional Access Policy

Configure a Microsoft Entra Conditional Access policy to block access from any location outside the United States for licensed users, while excluding guest accounts.

To achieve this, you must first define the United States as a named location in Microsoft Entra ID, and then create a policy that targets your licensed users, excludes guest users, and blocks access from any location that is not the United States.

1
Define the United States as a Named Location

Sign in to the Microsoft Entra admin center. Browse to Protection > Conditional Access > Named locations. Click 'Countries location', name it 'United States', select the US from the list, and click 'Save'.

2
Create a New Conditional Access Policy

Navigate to Protection > Conditional Access > Policies and select 'New policy'. Give your policy a descriptive name, such as 'Block Non-US Sign-ins for Internal Users'.

3
Assign Users and Exclude Guests

Under 'Users', click 'Select users and groups' and choose the specific licensed users or groups you want to restrict. Then, click the 'Exclude' tab, check the box for 'Guest or external users', and select 'All guest and external users'.

4
Configure the Location Condition

Under 'Target resources', select 'All cloud apps'. Under 'Conditions', click 'Locations'. Configure 'Yes', and under the 'Include' tab, select 'Any location'. Under the 'Exclude' tab, select 'Selected locations' and choose the 'United States' named location you created earlier.

5
Set Access Controls to Block

Under 'Access controls', select 'Grant', then choose 'Block access'. Under 'Enable policy', switch the toggle to 'On' (or 'Report-only' to test first), and click 'Create'.

Create a Location-Based Conditional Access Policy
Testing Policies: It is highly recommended to set the policy to 'Report-only' first to monitor sign-in logs and ensure legitimate users are not accidentally locked out before fully enforcing the block.
Free Microsoft Office alternative

Manage Your Documents Efficiently with WPS Office

While Microsoft 365 provides complex enterprise security controls like Conditional Access for IT administrators, teams looking for a lightweight, cost-effective, and highly compatible office suite for daily document creation should consider WPS Office.

  1. 1. Download and Install: Visit the official WPS Office website to download the installer for your operating system and complete the quick installation.
  2. 2. Open Existing Office Files: Launch WPS Office and open your existing Word, Excel, and PowerPoint documents with perfect format retention.
  3. 3. Work Seamlessly: Use the familiar ribbon interface to edit, collaborate, and save your documents locally or to the cloud.
Free and lightweight office suite available for Windows, Mac, Linux, iOS, and Android.Fully compatible with Microsoft Office file formats, including .docx, .xlsx, and .pptx.Familiar, intuitive user interface allows for seamless migration without a steep learning curve.Includes built-in PDF editing, merging, and conversion tools for comprehensive document management.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use standard Microsoft 365 Mobile Device Management (MDM) to block sign-ins by country?

No. While Microsoft 365 MDM can help control access from supported mobile devices and apps based on device compliance, it cannot restrict access by geographic region or IP address. Location-based blocking requires Microsoft Entra Conditional Access.

Do I need an extra license for Conditional Access if I have Microsoft 365 E5?

No extra license is needed if you have Microsoft 365 E5. The E5 licensing model inherently includes Microsoft Entra ID Premium P2 (formerly Azure AD Premium P2), which fully unlocks all Conditional Access configuration options.

Will blocking non-US locations automatically lock out my international guest users?

Not if the policy is configured properly. When creating the Conditional Access policy, you can use the 'Exclude' tab under the Users assignment section to explicitly bypass 'Guest or external users', ensuring their international access remains unaffected.