How to get the list of users who are assigned to the app roles.

Sandip Padhi 0 Reputation points
2024-02-16T10:43:56.77+00:00

I have an enterprise application hosted in Azure. I have added app roles to it. I am assigning users to the added app role. How can I get the list of all the users who are being assigned to that role. I have my appRoleId which is 4a8ee66f-856a-4d6d-a698-hy91djjac6e5.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,263 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Walter Coan 150 Reputation points MVP
    2024-02-16T13:14:15.8+00:00

    Hi Sandip, Thank you for your question. You can use Azure Resource Graph Explorer and make an query like this to search for roles assignment for an application.

    authorizationresources
    | where type == "microsoft.authorization/roleassignments"
    | where properties contains "<Object ID App Registration>"
    

    User's image

    Best Regards,


  2. Walter Coan 150 Reputation points MVP
    2024-02-16T13:14:54.7+00:00

    Hi Sandip, Thank you for your question. You can use Azure Resource Graph Explorer and make an query like this to search for roles assignment for an application.

    authorizationresources
    | 
    | 
    

    User's image

    Best Regards,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.