Step 3

Build the policy in report-only

Build the rule in report-only mode. It records each sign-in it would have blocked and blocks none.

10 minutesNeeds Conditional Access Administrator
WhereEntra ID›Conditional Access›Policies›New policy

The settings

SectionSet it to
Name[School name] - United Kingdom Only
Users: IncludeAll users
Users: ExcludeUsers and groups › Emergency Access Accounts
Target resourcesAll resources (formerly 'All cloud apps')
NetworkConfigure: Yes. Include: Any network or location. Exclude: Selected networks and locations › your United Kingdom location
ConditionsLeave as they are
GrantBlock access
SessionNothing
Enable policyReport-only

Select Create.

How to read it

The policy reads backwards. It blocks "everywhere", then removes the UK from "everywhere", which leaves sign-ins from outside the UK. Microsoft recommends this pattern because a location it cannot recognise ends up blocked.

Do not let it exclude you

When you save a blocking policy, the portal may offer to exclude your own account so you cannot lock yourself out. Decline. Your admin account is the one an attacker most wants, and the emergency accounts already cover a lockout. Reopen Users › Exclude afterwards and confirm only the emergency group is listed.

Test it without waiting

  1. Open What if

    On the Policies page select What if.

  2. Pick a member of staff and a country

    Choose any user, set the country to France and select What if.

  3. Read the result

    Your policy should be listed as one that would apply. Change the country to United Kingdom and it should move to the list that would not.

Your progress is kept in this browser only.