File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function Get-CIPPMFAState {
41
41
if ($null -ne $MFARegistration ) {
42
42
$CASuccess = $true
43
43
try {
44
- $CAPolicies = (New-GraphGetRequest - Uri ' https://graph.microsoft.com/beta/identity/conditionalAccess/policies' - tenantid $TenantFilter - ErrorAction Stop )
44
+ $CAPolicies = (New-GraphGetRequest - Uri ' https://graph.microsoft.com/beta/identity/conditionalAccess/policies?$top=999 ' - tenantid $TenantFilter - ErrorAction Stop )
45
45
foreach ($Policy in $CAPolicies ) {
46
46
$IsMFAControl = $policy.grantControls.builtincontrols -eq ' mfa' -or $Policy.grantControls.authenticationStrength.requirementsSatisfied -eq ' mfa' -or $Policy.grantControls.customAuthenticationFactors -eq ' RequireDuoMfa'
47
47
$IsAllApps = [bool ]($Policy.conditions.applications.includeApplications -eq ' All' )
@@ -99,7 +99,7 @@ function Get-CIPPMFAState {
99
99
}
100
100
}
101
101
102
- $PerUser = if ( $null -eq $PerUserMFAState ) { $null } else { ( $PerUserMFAState | Where-Object - Property UserPrincipalName -EQ $_ .UserPrincipalName ). PerUserMFAState }
102
+ $PerUser = $_ . PerUserMFAState
103
103
104
104
$MFARegUser = if ($null -eq ($MFARegistration | Where-Object - Property UserPrincipalName -EQ $_.userPrincipalName ).isMFARegistered) { $false } else { ($MFARegistration | Where-Object - Property UserPrincipalName -EQ $_.userPrincipalName ) }
105
105
You can’t perform that action at this time.
0 commit comments