# Fine-grained password policy application targets should be retrievable

Understanding which users and groups each fine-grained password policy applies to is essential for:

Source: https://maester.dev/docs/tests/AD-FGPP-04

<!-- 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/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" 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/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/ad">Active Directory</a> · Active Directory · Password policy · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-FGPP-04
```

## Overview

Understanding which users and groups each fine-grained password policy applies to is essential for:

- **Verifying coverage**: Ensure all privileged accounts are covered by stronger policies
- **Avoiding gaps**: Identify users who should have stricter policies but don't
- **Preventing conflicts**: Spot users who may be subject to multiple conflicting policies
- **Audit compliance**: Demonstrate that security controls are applied appropriately

A policy that doesn't apply to anyone is wasted configuration. A policy that applies to the wrong users can create security gaps or usability issues.

#### Control Type

**Operational**

#### Security Recommendation

Ensure your fine-grained password policies are applied correctly:

- **Privileged groups**: Domain Admins, Enterprise Admins, Schema Admins should have the strongest policies
- **Service accounts**: Accounts used for services and applications need appropriate policies
- **No gaps**: All users with elevated privileges should be covered
- **No conflicts**: Users should not be subject to multiple FGPPs (the one with the lowest precedence wins)

To review and modify policy application:
1. Open **Active Directory Administrative Center**
2. Navigate to **System** > **Password Settings Container**
3. Double-click a policy
4. In the **Directly Applies To** section, review and modify the users and groups

**Note**: If a user is subject to multiple FGPPs, the one with the lowest precedence number wins. If precedence is equal, the policy with the most specific match wins.

#### How the Test Works

This test retrieves all fine-grained password policies using `Get-ADFineGrainedPasswordPolicy` and shows which users and groups each policy applies to. For each policy, the test reports:
- Policy name
- List of users and groups the policy applies to
- Object type (user, group, etc.)
- Warning if a policy has no application targets

#### Related Tests

- `Test-MtAdFineGrainedPolicyCount` - Counts the number of FGPPs
- `Test-MtAdFineGrainedPolicySettingCounts` - Shows detailed settings for each policy

## Details

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

| Field | Value |
| --- | --- |
| Test ID | AD-FGPP-04 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Password policy |
| Area | Authentication |
| Resource type | Policy |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAdFineGrainedPolicyAppliesTo](https://github.com/maester365/maester/blob/main/tests/ad/password-policy/Test.AD-FGPP-04.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:computer.name:ReadProperty, ActiveDirectory:Ldap:msDS-PasswordSettings:ReadProperty, ActiveDirectory:Ldap:group.name:ReadProperty, ActiveDirectory:Ldap:user.name:ReadProperty |

</details>

## Source

- Test: [`tests/ad/password-policy/Test.AD-FGPP-04.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/password-policy/Test.AD-FGPP-04.ps1)
- Documentation: [`tests/ad/password-policy/Test.AD-FGPP-04.md`](https://github.com/maester365/maester/blob/main/tests/ad/password-policy/Test.AD-FGPP-04.md)
