# Fine-grained password policy count should be retrievable

Fine-grained password policies (FGPP) provide critical flexibility for security-conscious organizations:

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

<!-- 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-01
```

## Overview

Fine-grained password policies (FGPP) provide critical flexibility for security-conscious organizations:

* **Privileged account protection**: Apply stricter password policies to administrators and service accounts
* **Risk-based policies**: Different policies for different risk levels (e.g., IT admins vs. regular users)
* **Compliance flexibility**: Meet varying compliance requirements for different user populations
* **Service account security**: Enforce stronger policies for accounts that cannot use MFA

Without FGPPs, all users in the domain are subject to the same password policy, which often results in either:
- Too weak a policy for privileged accounts, or
- Too restrictive a policy for regular users, leading to workarounds

#### Control Type

**Operational**

#### Security Recommendation

Consider implementing fine-grained password policies for:
- **Domain Admins and privileged accounts**: Stronger requirements (longer passwords, shorter max age)
- **Service accounts**: Long, complex passwords that don't expire (since they can't easily be changed)
- **High-risk users**: Users with access to sensitive data

To create a fine-grained password policy:
1. Open **Active Directory Administrative Center**
2. Navigate to **System** > **Password Settings Container**
3. Right-click and select **New** > **Password Settings**
4. Configure policy settings and apply to appropriate users/groups

#### How the Test Works

This test retrieves all fine-grained password policies using `Get-ADFineGrainedPasswordPolicy` and counts them. The test reports:
* Number of FGPPs configured
* Whether FGPPs are being used for granular policy control

#### Related Tests

- `Test-MtAdFineGrainedPolicyAppliesTo` - Shows which users/groups each policy applies to
- `Test-MtAdPasswordHistoryCount` - Checks the default domain password history

## Details

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

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

</details>

## Source

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