Skip to content

Commit

Permalink
Merge branch 'main' into update-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK authored Oct 3, 2024
2 parents f5b44d6 + b20e803 commit f77af57
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions BARK.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ Function Get-EntraAppOwner {

)

$URI = "https://graph.microsoft.com/v1.0/servicePrincipals/$($AppObjectID)/owners"
$URI = "https://graph.microsoft.com/v1.0/applications/$($AppObjectID)/owners"
$Results = $null
$AppOwners = $null
do {
Expand Down Expand Up @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand All @@ -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))
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit f77af57

Please sign in to comment.