User Review( votes)
In the previous post, we covered conditional access based on the device platform, here we’d look into how we can use the network location to block the access.
We can either use IP ranges or Countries / Regions for defining the location.
Login into the Azure Portal
Navigate to Azure Active Directory – Security – Named locations to define the location.
Here we are adding a new countries location record.
For the new location, we have selected India and UAE.
Next click on Conditional Access to define a new policy.
For Users and groups, we have selected a user named testuser1.
For Cloud Apps or actions, we have selected Common Data Service.
For Conditions, we have specified Locations condition with the Restricted Locations record that we had created earlier.
For Access Controls, we have selected Block access.
Enable and create the policy.
Before the policy was enabled, test user1 was able to access Dynamics 365.
After enabling the policy if we try accessing Dynamics 365 from either UAE or India location, we’d get the below message.
Same for the Dynamics 365 for Phones app.
Test user 3 to which policy doesn’t apply can still access Dynamics 365.
Hope it helps..