mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
625aca7121
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.