Home › Knowledgebase › KB-979

How to Set Up and Manage Conditional Access Policies to Block Logins from Outside Australia for Your Brisbane Small Business

Summary

This guide helps you troubleshoot and resolve: How to Set Up and Manage Conditional Access Policies to Block Logins from Outside Australia for Your Brisbane Small Business. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Conditional Access policies in Microsoft Entra ID allow your small business to control how users access Microsoft 365 based on specific conditions. By configuring a location-based policy, you can block login attempts originating from outside Australia, significantly reducing the risk of unauthorized access from overseas attackers while ensuring your local team can work without interruption.

Detailed Instructions

Prerequisites

Before you begin, ensure you have one of the following licenses assigned to your administrative account: Microsoft Entra ID P1 or P2. You must also have the Conditional Access Administrator or Security Administrator role assigned in Microsoft Entra ID.

Critical Warning: Before applying this policy, you must identify and exclude any services that authenticate from outside Australia. This includes Microsoft 365 backend services, email security gateways, third-party integrations, and VPN endpoints. If these services are not excluded, you may break mail flow, disrupt cloud integrations, or prevent essential business applications from functioning. Additionally, you must exclude break-glass/emergency access accounts and service accounts to avoid being locked out of your tenant.

Step 1: Sign in to the Microsoft Entra admin centre

  1. Open your web browser and go to https://entra.microsoft.com.
  2. Sign in using an account with global administrator or conditional access administrator privileges.

Step 2: Navigate to Conditional Access policies

  1. In the left-hand navigation menu, select Protection.
  2. Under the Protection section, click Conditional Access.
  3. On the Conditional Access page, select Policies.

Step 3: Create a new policy

  1. Click + New policy.
  2. Enter a clear name for the policy, such as Block logins from outside Australia.

Step 4: Configure assignments

  1. Under the Assignments section, select Users and groups. Choose All users or select specific groups containing your staff. Click Select.
  2. Select Cloud apps or actions. Choose All cloud apps to apply the restriction across Microsoft 365, or select specific apps like Office 365 Exchange Online and SharePoint. Click Select.
  3. Select Conditions > Locations.
  4. Set Configure to Yes.
  5. Under Include, select Any location.
  6. Under Exclude, select Selected locations.
  7. Click Select locations, check Australia, and click Select.
  8. Click Done to save the location configuration.

How this logic works: By setting Include to Any location and Exclude to Australia, the policy applies to every location except Australia. Because the Grant control (configured in Step 5) is set to Block access, any login attempt originating from outside Australia will be blocked, while logins from within Australia are permitted.

Step 5: Configure access controls

  1. Under the Access controls section, select Grant.
  2. Select Block access.
  3. Click Select.

Step 6: Exclude critical accounts

  1. Return to the Users and groups assignment.
  2. Select the Exclude tab.
  3. Add your break-glad/emergency access accounts, service accounts, device accounts, and automation accounts.
  4. Click Select.

Step 7: Test with a pilot group

  1. Do not apply the policy to all users immediately.
  2. Create a test group containing a small number of volunteer staff members.
  3. Assign this test group to the policy.
  4. Monitor the sign-in logs for one week to ensure no legitimate Australian logins are being blocked and that service accounts are functioning correctly.
  5. Once verified, expand the policy to include all users.

Step 8: Enable the policy

  1. Under Enable policy, select On.
  2. Click Create to save and activate the policy.
Tip: Before enabling the policy for all users, consider setting it to Report-only mode first. This allows you to analyse sign-in logs to see who would be affected without actually blocking any logins.
Warning: Do not apply this policy to your emergency access or break-glass administrator accounts. If you accidentally block your own access, you may be locked out of the Microsoft Entra admin centre.

Troubleshooting

I am blocked from signing in while in Australia

  1. Sign in to the Microsoft Entra admin centre from a different network or mobile hotspot if possible.
  2. Navigate to Protection > Conditional Access > Policies.
  3. Select your blocking policy and set Enable policy to Off.
  4. Review the sign-in logs under Monitoring > Sign-in logs to verify your IP address is correctly geolocated to Australia.

Users are still able to log in from overseas

  1. Verify the policy is set to On, not Report-only.
  2. Check that the affected users are included in the policy's Users and groups assignment.
  3. Verify that the Locations condition is set to Include: Any location and Exclude: Australia.
  4. Confirm the Grant control is set to Block access.

Legitimate users travelling overseas

If a staff member is travelling overseas and requires temporary access to Microsoft 365:

  1. Navigate to Protection > Conditional Access > Policies.
  2. Select your blocking policy.
  3. Under Users and groups, add the travelling user to the Exclude list.
  4. Click Save.
  5. Once the user returns to Australia, remove them from the exclusion list to restore the security policy.

Managing existing policies

To edit or remove a policy:

  1. Go to Protection > Conditional Access > Policies.
  2. Click the name of the policy you want to manage.
  3. Make your changes to assignments or controls, then click Save.
  4. To delete a policy, select the policy and click Delete from the top menu.

If you experience issues configuring Conditional Access or need assistance reviewing your sign-in logs, you can Open a Ticket with our support team.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket