An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
Hello there,
Check if you can get the information using the REST API. To list role assignments (list access), you can use one of the Role Assignments - List REST APIs. To refine your results, you specify a scope and an optional filter. To call the API, you must have access to the Microsoft.Authorization/roleAssignments/read operation at the specified scope. All built-in roles are granted access to this operation.
Use RBAC to manage access with the REST API https://learn.microsoft.com/en-us/rest/api/authorization/role-assignment-rest-sample
Also note 'New-AzRoleAssignment' PowerShell cmdlet is required to have 'Az.Resources' module. Refer to the following:
https://docs.microsoft.com/en-us/powershell/module/az.resources/new-azroleassignment?view=azps-4.3.0
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–