Skip to content

Commit 8d5c5d4

Browse files
committed
move gdap check outside of loop
1 parent e3c4678 commit 8d5c5d4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Modules/CIPPCore/Public/Test-CIPPGDAPRelationships.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ function Test-CIPPGDAPRelationships {
8383
Type = 'SAM User Membership'
8484
}) | Out-Null
8585
}
86-
if ($CIPPGroupCount -lt 12) {
87-
$GDAPissues.add([PSCustomObject]@{
88-
Type = 'Warning'
89-
Issue = "We only found $($CIPPGroupCount) of the 12 required groups. If you have migrated outside of CIPP this is to be expected. Please perform an access check to make sure you have the correct set of permissions."
90-
Tenant = '*Partner Tenant'
91-
Relationship = 'None'
92-
Link = 'https://docs.cipp.app/setup/gdap/troubleshooting#groups'
86+
}
87+
if ($CIPPGroupCount -lt 12) {
88+
$GDAPissues.add([PSCustomObject]@{
89+
Type = 'Warning'
90+
Issue = "We only found $($CIPPGroupCount) of the 12 required groups. If you have migrated outside of CIPP this is to be expected. Please perform an access check to make sure you have the correct set of permissions."
91+
Tenant = '*Partner Tenant'
92+
Relationship = 'None'
93+
Link = 'https://docs.cipp.app/setup/gdap/troubleshooting#groups'
9394

94-
}) | Out-Null
95-
}
95+
}) | Out-Null
9696
}
9797

9898
} catch {

0 commit comments

Comments
 (0)