Files
Hugo P.Brito 625aca7121 feat(m365): add entra_conditional_access_policy_p2_license_utilization
Adds the P2 (risk-based Conditional Access) license utilization check.
Reuses the canonical PremiumLicenseInsight model + parser introduced in
the P1 check (#10783): compares
p2FeatureUtilizations.riskBasedConditionalAccess[GuestUsers].userCount
against entitledP2LicenseCount only — P1 entitlements do not include P2
features.

- Renamed from `entra_conditional_access_policy_license_utilization` so
  P1 and P2 checks are clearly distinguishable.
- Returns MANUAL when license insight is unavailable (mirrors P1 check).
- Tests cover PASS, FAIL (insufficient + guests), P1-only-not-covered,
  isolation from P1 utilization, and zero/zero edge case.
2026-04-28 14:55:46 +01:00
..