Block Microsoft 365 Access Outside the United States with Conditional Access
Question details
Restrict organizational access to Microsoft 365 services to connections from 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.
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.
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.
In the Microsoft Entra admin center, open Protection > Conditional Access > Named locations. Select Countries location, name it, select United States, and create the location.
Go to Protection > Conditional Access > Policies and select New policy. Enter a name that identifies the non-US access block.
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.
Open Conditions > Locations and configure it. Under Include, select Any location; under Exclude, select the United States named location you created.
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.

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.

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.




