Skip to content

Commit ee8e3ec

Browse files
Add MFA state
1 parent 7fbadce commit ee8e3ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Invoke-ListTests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ function Invoke-ListTests {
8585
if ($SecureScoreData) {
8686
$TestResultsData | Add-Member -NotePropertyName 'SecureScore' -NotePropertyValue $SecureScoreData -Force
8787
}
88+
$MFAStateData = New-CIPPDbRequest -TenantFilter $TenantFilter -Type 'MFAState'
89+
if ($MFAStateData) {
90+
$TestResultsData | Add-Member -NotePropertyName 'MFAState' -NotePropertyValue $MFAStateData -Force
91+
}
8892

8993
$StatusCode = [HttpStatusCode]::OK
9094
$Body = $TestResultsData

0 commit comments

Comments
 (0)