Skip to content

Commit 2f885bb

Browse files
Updated Tests
1 parent 97f1ac6 commit 2f885bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/Tests/Invoke-CippTestZTNA21847.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ function Invoke-CippTestZTNA21847 {
55

66
try {
77
# Check if tenant has on-premises sync
8-
$Settings = New-CIPPDbRequest -TenantFilter $Tenant -Type 'Settings'
8+
$Settings = New-CIPPDbRequest -TenantFilter $Tenant -Type 'Organization'
99

1010
if (-not $Settings) {
1111
Add-CippTestResult -TenantFilter $Tenant -TestId $TestId -TestType 'Identity' -Status 'Investigate' -ResultMarkdown 'Organization details not found' -Risk 'High' -Name 'Password protection for on-premises is enabled' -UserImpact 'Low' -ImplementationEffort 'Low' -Category 'Credential management'
1212
return
1313
}
1414

15-
$Org = $Organization[0]
15+
$Org = $Settings[0]
1616

1717
if ($Org.onPremisesSyncEnabled -ne $true) {
1818
Add-CippTestResult -TenantFilter $Tenant -TestId $TestId -TestType 'Identity' -Status 'Passed' -ResultMarkdown '✅ **Pass**: This tenant is not synchronized to an on-premises environment.' -Risk 'High' -Name 'Password protection for on-premises is enabled' -UserImpact 'Low' -ImplementationEffort 'Low' -Category 'Credential management'

0 commit comments

Comments
 (0)