How to Block Non-US Sign-Ins Using Microsoft 365 Conditional Access
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.

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

Verify Conditional Access Licensing Requirements
Ensure your Microsoft 365 subscription includes the necessary Microsoft Entra ID Premium licenses required to use Conditional Access features.
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. Download and Install: Visit the official WPS Office website to download the installer for your operating system and complete the quick installation.
- 2. Open Existing Office Files: Launch WPS Office and open your existing Word, Excel, and PowerPoint documents with perfect format retention.
- 3. Work Seamlessly: Use the familiar ribbon interface to edit, collaborate, and save your documents locally or to the cloud.

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.




