# Conditional Access policy without any target resources configured

Checks if any Conditional Access policy is not targeted to any resource.

Source: https://maester.dev/docs/tests/MT.1184

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/bakkerjan" title="Jan Bakker · Original author"><img src="https://github.com/BakkerJan.png" alt="Jan Bakker" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/bakkerjan">Jan Bakker</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Entra ID · Conditional Access · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1184
```

## Overview

Checks if any Conditional Access policy is not targeted to any resource.

It's possible to create and even enable a Conditional Access policy without selecting any target resources - cloud apps, user actions, or authentication context. The policy is accepted and appears in the portal like any other policy, but it applies to nothing and enforces nothing.

An untargeted policy gives a false sense of security: it looks like active protection, but has no effect. This commonly happens when a policy is created as a draft and never finished, or when an admin forgets to select a target before saving.

#### Remediation action

1. Open the impacted policy in [Conditional Access policies](https://entra.microsoft.com/#view/Microsoft_AAD_ConditionalAccess/ConditionalAccessBlade/~/Policies).
2. Under **Target resources**, configure at least one of: cloud apps, user actions, or authentication context.
3. If the policy is no longer needed, delete it instead of leaving it untargeted.

#### Related links

* [Conditional Access: Cloud apps, actions, and authentication context - Microsoft Learn](https://learn.microsoft.com/entra/identity/conditional-access/concept-conditional-access-cloud-apps)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | MT.1184 |
| Severity | Medium |
| Suite | Maester |
| Product | Entra ID |
| Feature | Conditional Access |
| Area | Access control |
| Resource type | ConditionalAccessPolicy |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1078.004 Cloud Accounts |
| PowerShell test | [Test-MtCaUntargetedPolicy](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1184.ps1) |
| Services | Graph |

</details>

## Source

- Test: [`tests/maester/entra/Test.MT.1184.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1184.ps1)
- Documentation: [`tests/maester/entra/Test.MT.1184.md`](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1184.md)
