Azure Graph api

Yaswanth Kondisetti 26 Reputation points
2022-07-13T05:56:15.817+00:00

How can fetch users and the roles assigned to that users combined in a single graph query?

Microsoft Security Microsoft Graph
{count} votes

Accepted answer
  1. CarlZhao-MSFT 46,371 Reputation points
    2022-07-13T08:53:32.993+00:00

    Hi @Yaswanth Kondisetti

    Yes, you lost the $ sign in the v1.0 endpoint.

    The correct api endpoint is: https://graph.microsoft.com/v1.0/users?$select=displayName,id&$expand=appRoleAssignments($select=appRoleId,resourceDisplayName).

    220334-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.