Get the list of users assigned to an App

%3CLINGO-SUB%20id%3D%22lingo-sub-3007327%22%20slang%3D%22en-US%22%3EGet%20the%20list%20of%20users%20assigned%20to%20an%20App%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3007327%22%20slang%3D%22en-US%22%3E%3CP%3ENeed%20help%20on%20getting%20the%20list%20of%20users%20assigned%20to%20an%20app.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20using%20the%26nbsp%3BservicePrincipals%20queries.%20But%2C%20it%20is%20only%20retruning%20the%20AppRoles.%20I%20need%20to%20know%20the%20users%20assigned%20in%20the%20role.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FservicePrincipals%2Fc6726d92-0c7b-40eb-863d-db887d958c08%2FappRoleAssignedTo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FservicePrincipals%2Fc6726d92-0c7b-40eb-863d-db887d958c08%2FappRoleAssignedTo%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20see%20the%20approles%20using%20the%20users%20queries.%20So%2C%20there%20must%20be%20some%20way%20to%20get%20the%20details%20other%20way.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fusers%2Fkesavi.thakkellapati%40transport.nsw.gov.au%2FappRoleAssignments%3F%24filter%3DresourceId%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fusers%2Fuid%2FappRoleAssignments%3F%24filter%3DresourceId%3C%2FA%3E%20eq%20171f3837-b87b-4fc7-b680-4357fd3ec3d2%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Need help on getting the list of users assigned to an app.

 

I have tried using the servicePrincipals queries. But, it is only retruning the AppRoles. I need to know the users assigned in the role.

 

https://graph.microsoft.com/beta/servicePrincipals/c6726d92-0c7b-40eb-863d-db887d958c08/appRoleAssig...

 

I can see the approles using the users queries. So, there must be some way to get the details other way.

 

https://graph.microsoft.com/beta/users/uid/appRoleAssignments?$filter=resourceId eq 171f3837-b87b-4fc7-b680-4357fd3ec3d2

0 Replies