Skip to content

Azure Role assignment API to list role owners #18725

Open
@apurvdhadankar

Description

@apurvdhadankar

Hi,
Can anybody please help me to list the Azure Owner roles? I have tried adding filters to API but I didn't find a way to filter out only owner roles using role assignment list API.
API reference - https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-list-rest.

Although there is CLI to list the owner roles. I tried to debug it how Azure is filtering out owner roles.
az role assignment list --subscription subscription-id --role "Owner"

In the CLI response, we're getting principalName and roleDefinitionName. But in the API response, these properties are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthorizationService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions