Skip to content

List owned app registration in the context of an application/spn #24694

@verbedr

Description

@verbedr

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

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamGraph(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.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions