Skip to content

Get-AzRoleDefinition -Name "[...]" should be able to return the complete Actions list, not solely "*" #8977

Closed

Description

@hlarrymoprem

When performing the following, users who may be Azure Administrators attempting to have fine-grained permissions/control of their users' experiences, should have full visibility of the full list of Actions, rather than simply receiving an asterisk ("*") for the list of role Actions, when performing:

Get-AzRoleDefinition -Name "Contributor" -Verbose true

Instead of returning "*" for Actions -
{
"Name": "Contributor",
"Id": "b24988ac-6180-42a0-ab88-20f7382dd24c",
[...]
"Actions": ["*"],
[...]
}

The Cmdlet should return the itemized list of Actions, when "-Verbose true" is added to the request, which could be [converted to Json and] piped to a file:
{
"Name": "Contributor",
"Id": "b24988ac-6180-42a0-ab88-20f7382dd24c",
[...]
"Actions": [
"THE ENTIRE ITEMIZED LIST",
"OF APPLICABLE ACTIONS",
" SHOULD BE LISTED HERE",
"RATHER THAN '*'"
],

[...]
}

Assumption: Large action lists, such as those that are part of the "Contributor" role, are the only ones that may abstract long Action lists into "*".

Activity

  1. added
    feature-requestThis issue requires a new behavior in the product in order be resolved.
    on Apr 9, 2019
  2. changed the title [-]Get-AzRoleDefinition -Name "Contributor" should be able to return the complete Actions list, not solely "*"[/-] [+]Get-AzRoleDefinition -Name "[...]" should be able to return the complete Actions list, not solely "*"[/+] on Apr 9, 2019
  3. added
    Service AttentionThis issue is responsible by Azure service team.
    and removed
    Service AttentionThis issue is responsible by Azure service team.
    on Mar 10, 2022
  4. navba-MSFT commented on Mar 10, 2022

    @navba-MSFT
    Contributor

    hlarrymoprem Apologies for the late reply. We will update this thread once we have more details on this.

    Haridarshan HS (@darshanhs90), AshishGargMicrosoft Could you please let us know if there are any plans to implement this feature request ?

  5. microsoft-github-policy-service commented on Apr 10, 2026

    @microsoft-github-policy-service
    Contributor

    🔔 Routing this issue to @act-identity-squad.

  6. teresaritorto commented on Oct 8, 2026

    @teresaritorto
    Collaborator

    For built-in roles like Contributor, [""] is the actual content of the role definition in Azure, not a truncated or abstracted list. The "" is a wildcard meaning all control plane actions, so Get-AzRoleDefinition is returning the role definition exactly as it is stored, and there is no itemized list hidden behind the asterisk.

    To enumerate the concrete operations the wildcard covers, use Get-AzProviderOperation * (or scope it to a provider, for example Get-AzProviderOperation Microsoft.Compute/*).

    Closing as working as intended.

    If there is a specific scenario that neither cmdlet can express, please open a fresh issue with the exact command and the expected output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions