Conditional Access Problems

Block Microsoft 365 Access Outside the United States with Conditional Access

Chanuka GeekiyanageChanuka Geekiyanage Nov 22, 2026 868 views

Question details

Restrict organizational access to Microsoft 365 services to connections from the United States.

Block Microsoft 365 Access Outside the United States
Product
Microsoft 365 and Microsoft Entra Conditional Access
Device & OS
not provided
Scenario
An organization wants to prevent users from signing in to Microsoft 365 services from outside the United States.
Observed behavior
Users should be blocked when their sign-in location is outside the United States.
Before you start

Confirm that the users covered by the policy have Microsoft Entra ID P1 or another license that includes Conditional Access. Identify emergency access accounts to exclude and test the policy in report-only mode before enforcing it.

Solution 1Recommended

Block Non-US Sign-ins with a Conditional Access Policy

Use a country-based named location and a block policy to restrict Microsoft 365 sign-ins outside the United States.

The policy blocks sign-ins from any location except the United States. Country detection is based on the sign-in's public IP address, so VPNs, proxies, and IP geolocation errors can affect the result.

1
Create a US named location

In the Microsoft Entra admin center, open Protection > Conditional Access > Named locations. Select Countries location, name it, select United States, and create the location.

2
Create a policy

Go to Protection > Conditional Access > Policies and select New policy. Enter a name that identifies the non-US access block.

3
Assign users and apps

Under Users, select the users or groups to protect and exclude your emergency access accounts. Under Target resources or Cloud apps, select the Office 365 app group, or select the Microsoft 365 apps required by your organization.

4
Set the location condition

Open Conditions > Locations and configure it. Under Include, select Any location; under Exclude, select the United States named location you created.

5
Block and test access

Under Grant, select Block access. Set Enable policy to Report-only and create the policy. Review the report-only results in Microsoft Entra sign-in logs, then return to the policy and switch it On when the results are correct.

Block Non-US Sign-ins with a Conditional Access Policy
Plan for exceptions: Excluded accounts are not protected by this policy. Verify that emergency access accounts remain usable and review how VPNs and sign-ins with unknown locations will be handled before enforcement.
Free Microsoft Office alternative

Work with Office Files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility, making it easy to move existing documents. It does not replace Microsoft Entra Conditional Access or enforce Microsoft 365 location restrictions.

Edit Word, Excel, and PowerPoint files in compatible formats such as DOCX, XLSX, and PPTXUse familiar document, spreadsheet, and presentation toolsWork with Office files without relying on Microsoft 365 web appsGet started with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Which license is needed for Conditional Access?

Users covered by a Conditional Access policy need Microsoft Entra ID P1 or another eligible license that includes Conditional Access. Check your organization's licenses in the Microsoft Entra admin center before creating the policy.

How can I test the policy without blocking users?

Set Enable policy to Report-only when creating the policy, then review its results in Microsoft Entra sign-in logs before switching the policy On.

Will a user in the United States be blocked while using a VPN?

Possibly. Conditional Access evaluates the public IP address seen at sign-in. If the VPN exits outside the United States, the sign-in can be treated as non-US and blocked.

What happens if Microsoft cannot determine the sign-in country?

A sign-in with an unknown location is not included in the United States named location. With Any location included and only the US excluded, the block policy can apply to that sign-in.

Why exclude emergency access accounts from the policy?

Excluding emergency access accounts reduces the risk of an administrative lockout if the location policy is configured incorrectly. Review and secure those accounts because this policy will not block them.