Microsoft Entra ID Conditional Access What If

Microsoft Entra ID Conditional Access What If

An underrated feature of Entra ID Conditional Access is the What If tool. The Conditional Access What If tool can help you troubleshoot or design Conditional Access policies.

Typically, when building a Conditional Access policy, you target a test user and then expand testing using report-only mode. Testing can be difficult if the workflow is complex or uncommon. Fortunately, the Conditional Access What If tool lets you simulate logins and policy impacts to test or troubleshoot without logging in multiple times or waiting for changes to propagate and the Entra sign-in logs to populate.

In this post, I will show you step by step how to use the Conditional Access What If tool.

The Process

In my example, I will select Users.

Depending on which identity type you selected, your options will differ.

In my example, I will select my user account.

Depending on which target resource you selected, your options will differ.

In my example, I will select Cloud apps.

If you have a Conditional Access policy targeting Office 365 or Microsoft Admin Portals, these are application groups. Unfortunately, we can’t select groups in the What If tool.

A full list of all the applications included in the Office 365 group is available from Microsoft here.

A full list of all the applications included in the Microsoft Admin Portals group is available from Microsoft here.

In my example, I will select Office 365 Exchange Online.

In my example, I will select Windows.

In my example, I will select Mobile apps and desktop clients – Modern authentication clients.

The following sign-in conditions settings are optional.

If you want to test a country policy, you don’t need to use a real IP address, you can enter 127.0.0.1 or any random IP address. The IP address really only matters when you are testing or troubleshooting an IP address in a Conditional Access named location.

In my example, the policy CA003 – All Apps – Block Countries – Exclude Canada – All Users is applying to my user. If I edit the sign-in conditions to include the IP 127.0.0.1 and the Country Canada, then when I rerun the What If tool, I can see that my account did not hit policy CA003 – All Apps – Block Countries – Exclude Canada – All Users.

If I look at the Policies that will not apply, I can see that the policy CA003 – All Apps – Block Countries – Exclude Canada – All Users did not apply because the location condition is now matched.

That’s all it takes to use the Microsoft Entra ID Conditional Access What If tool to test and troubleshoot Conditional Access policies.

If you want to read more about the Conditional Access What If tool, here is the Microsoft documentation.

Exit mobile version