From 6ffda7e69e25209630f03493787955121ba74f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20B=C3=BClow=20Knudsen?= <12843299+JonasBK@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:11:49 +0200 Subject: [PATCH] fix Get-EntraTierZeroServicePrincipals --- BARK.ps1 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/BARK.ps1 b/BARK.ps1 index efa9bd7..4d59799 100644 --- a/BARK.ps1 +++ b/BARK.ps1 @@ -6373,8 +6373,6 @@ Function Get-EntraTierZeroServicePrincipals { -ContentType "application/json" if ($Results.value) { $GlobalAdmins += $Results.value - } else { - $GlobalAdmins += $Results } $uri = $Results.'@odata.nextlink' } until (!($uri)) @@ -6393,8 +6391,6 @@ Function Get-EntraTierZeroServicePrincipals { -ContentType "application/json" if ($Results.value) { $PrivRoleAdmins += $Results.value - } else { - $PrivRoleAdmins += $Results } $uri = $Results.'@odata.nextlink' } until (!($uri)) @@ -6413,8 +6409,6 @@ Function Get-EntraTierZeroServicePrincipals { -ContentType "application/json" if ($Results.value) { $PrivAuthAdmins += $Results.value - } else { - $PrivAuthAdmins += $Results } $uri = $Results.'@odata.nextlink' } until (!($uri)) @@ -6433,8 +6427,6 @@ Function Get-EntraTierZeroServicePrincipals { -ContentType "application/json" if ($Results.value) { $PartnerTier2Support += $Results.value - } else { - $PartnerTier2Support += $Results } $uri = $Results.'@odata.nextlink' } until (!($uri)) @@ -6462,8 +6454,6 @@ Function Get-EntraTierZeroServicePrincipals { -ContentType "application/json" if ($Results.value) { $MGAppRoles += $Results.value - } else { - $MGAppRoles += $Results } $uri = $Results.'@odata.nextlink' } until (!($uri))