Skip to content

Getting all the roles and role definitions #15165

@reach4bawer

Description

@reach4bawer

How do I get all the roles and role definition using the python sdk? Something that is equivalent to Get-AzRoleAssignment and Get-AzRoleDefinition .
I tried searching for something that would give IAM policies but so far I couldn't find any documentation or examples/models that I can use.

Any guidance on this would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AuthorizationMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe 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