Open
Description
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.