Skip to content

Commit

Permalink
update mfa report user registration query
Browse files Browse the repository at this point in the history
Requires AuditLog.Read.All application permission - added to manifest
  • Loading branch information
JohnDuprey committed Jan 31, 2025
1 parent ffb6ebf commit 79e8524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/Get-CIPPMFAState.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-CIPPMFAState {
$CAState = [System.Collections.Generic.List[object]]::new()

Try {
$MFARegistration = (New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails' -tenantid $TenantFilter)
$MFARegistration = (New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails' -tenantid $TenantFilter -asapp $true)
} catch {
$CAState.Add('Not Licensed for Conditional Access') | Out-Null
$MFARegistration = $null
Expand Down

0 comments on commit 79e8524

Please sign in to comment.