-
Notifications
You must be signed in to change notification settings - Fork 3.4k
List owned app registration in the context of an application/spn #24694
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Related command
az ad app list --show-mine
Describe the bug
When executing in an azdo pipeline and thus using a spn (application based) access token, we get "ERROR: /me request is only valid with delegated authentication flow." . This probably caused by the underlying graph API call, but I'm unaware what the exact call is. This is why I report it here
To Reproduce
Execute the command using a SPN.
Expected behavior
The same result as if you would execute the command with a normal user. It should be noted that spn's can be owners and have the required rights to access and updates app registration.
Environment summary
Hosted agent -> https://github.com/actions/runner-images/blob/ubuntu20/20221027.1/images/linux/Ubuntu2004-Readme.md
azure-cli 2.41.0 *
azure-devops 0.25.0
Additional context