How to block all countries from attempting to login besides the US with conditional Access

James A. Spellman 0 Reputation points
2025-12-11T22:24:49.8233333+00:00

I could use some guidance in blocking Attempted failed login from other countries or IP addresses

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Oldest
  1. AI answer

    2025-12-11T22:25:01.9066667+00:00

    To block all countries except the US from attempting to log in using Conditional Access in Microsoft Entra, you can follow these steps:

    1. Sign in to the Microsoft Entra admin center as a Conditional Access Administrator.
    2. Navigate to Entra ID > Conditional Access > Named locations.
    3. Create a new named location:
      • Choose Countries/Regions as the type of location.
      • Name your location (e.g., "Allowed Countries").
      • Select United States from the list of countries.
    4. Create a new Conditional Access policy:
      • Go to Policies and select New policy.
      • Under Assignments, choose Users and groups to specify who this policy applies to.
      • Under Cloud apps or actions, select the applications you want to protect.
      • Under Conditions, select Locations and include the named location you created (the US) and exclude all other locations.
    5. Set the Access controls to Block access for all other countries.
    6. Enable the policy and monitor its effectiveness.

    This setup will ensure that only users attempting to log in from the US can access the specified applications, while all other countries will be blocked.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.