Azure / Azure/azure-rest-api-specs

Listing role assignments of a subscription via REST API

Open
#17,405 2 comments 0 reactions 0 assignees View on GitHub
Authorization customer-reported question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Hello, I want to list the role assignments for a subscription using the REST API. I'm following the documentation [here](https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-list-rest). However, it seems like I'm not able to achieve the wanted behaviour. Is to possible to do a API call which is doing the equivalent to
Screenshot 2022-01-19 at 14 39 54
the following done via the Azure portal UI.. Selecting a subscription >> Selecting Access Control(IAM). I want the response from the API call to return the role assignments either in "All scopes" or in the "This resource scope" as shown in the screenshot bellow.

Contributor guide

Open the contributing guide

Research direction

The issue points to the Azure role-assignments REST documentation and the portal's subscription IAM view; start by comparing the documented scope parameters with the portal request. Done means confirming the supported API call or identifying the REST API specification change needed to expose the requested assignment scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, authorization, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.