Get-MgBetaSecurityRuleDetectionRuleCount
GET /security/rules/detectionRules/$count (beta)
Module: Microsoft.Graph.Beta.Security
Permissions
Delegated (work or school)
- CustomDetection.Read.All (least privilege)
- CustomDetection.ReadWrite.All
Delegated (personal)
No permission metadata available for this account type.
Application
- CustomDetection.Read.All (least privilege)
- CustomDetection.ReadWrite.All
Source: Microsoft Graph PowerShell SDK metadata
Confirm property-specific permissions, Entra roles, licensing and ownership requirements in the official documentation. SDK metadata outside the verified sample is not independently certified.