About a week ago a new option in Azure Conditional Access showed up as User Action, Register Security Information. With this new option we have the possibility to control the location from where an Office 365/ Azure AD user is allowed to register Multi-Factor Authentication (MFA) or Self Service Password Reset (SSPR) information. We can now for example only allow registration of MFA information from our internal network, which we consider secure.
In this blog post I show how to setup up a Conditional Access policy to restrict the registration of security information to only my own network. My own network is registered as Named Location using my external IP-address.
I assume you have already setup Multi-Factor Authentication and/ or Self Service Password Reset in Azure.
Setup Azure Conditional Access policy
We first setup a new Named Location. In this example I create a location for my office network which contains my external IP-address and mark it as Trusted Location.
- Sign-in to the Azure Portal
- Click on Azure Active Directory
- Click Conditional Access – Named Locations
- Click New location
- Give the location a Name
- Check Mark as trusted location
- Add your external IP-address under IP ranges
- Click Create
When the new location is created, we create a new Conditional Access policy with the new option Register Security Information.
- Click Policies
- Click Create policy
- Give your policy a Name
- Click the Users and Groups tab
- Select All Users or select Select users and Groups and select a security group to apply the policy to
- Click Done
- Click the Cloud apps or actions tab
- Click User Actions
- Check Register security information
- Click Done
- Click the Conditions tab
- Click the Locations tab
- Click Yes to enable the condition
- On the Include tab check Any location
- On the Exclude tab check All trusted locations
- Click Done twice
- Click the Grant tab
- Check Block Access
- Click Select
- Click On under Enable Policy
- Click Create
Setting up our configuration is finished and active in just a few minutes.
End-user experience
On a device which is not connected to the internal network of a trusted location, sign-in to Office.com with a new user. The user needs to register the MFA or SSPR information, but is blocked to do so.
On a device which is connected to the internal network of a trusted location, we are allowed to register the MFA or SSPR information as we are used to be.