MT.1023 - All users utilizing a P2 license should be licensed.
Overviewβ
All users who utilize Entra ID P2 features should be licensed for Entra ID P2.
This test uses the Entra ID premium licence utilization insights in Microsoft Graph to compare the number of users covered by risk-based Conditional Access with the number of users entitled to an Entra ID P2 licence. The test fails when more users utilize P2 features than are licensed.
Remediation actionβ
Assign Entra ID P2 licences to every user who is in scope of risk-based Conditional Access policies, or reduce the scope of those policies to licensed users.
To see licence counts and feature usage, open License usage in the Microsoft Entra admin center (Billing > Licenses). When more users use P2 features than are licensed, the result also lists the Conditional Access policies that currently use sign-in risk or user risk. The usage count covers the previous month, so a policy changed since then may not match it.
Related linksβ
- Microsoft Entra license usage insights - Microsoft Learn
- Introducing Microsoft Entra license utilization insights - Microsoft Community Hub
- Microsoft Entra licensing - Microsoft Learn
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | MT.1023 |
| Severity | Low |
| Suite | Maester |
| Product | Entra ID |
| Feature | Conditional Access |
| Area | Infrastructure hardening |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | None |
| PowerShell test | Test-MtCheckMT1023 |
| Services | Graph |
| Compatible licenses | AAD_PREMIUM |
Sourceβ
- Test:
tests/maester/entra/Test.MT.1023.ps1 - Documentation:
tests/maester/entra/Test.MT.1023.md

