Skip to content

Commit

Permalink
Get-EntraAppOwner uses wrong endpoint
Browse files Browse the repository at this point in the history
changed from "Serviceprincipal" to "applications" as it says in microsoft docs
  • Loading branch information
Nimretz authored Aug 14, 2024
1 parent 7c50c85 commit 5d75d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BARK.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,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

0 comments on commit 5d75d93

Please sign in to comment.