title: How do I get the "Assigned Role" of a User in Azure Active Directory?
body: <p>I am using Azure AD with a registered Application and I am using the Microsoft Graph API to query the AD.</p>
  
  <p>The following code below tells which groups the User is Assigned to</p>
  
  <pre><code>var memberof = await graphClient.Users[xxx].MemberOf.Request().GetAsync();
  </code></pre>
  
  <p>I am using standard AD package and it seems that groups are somewhat restricted and I need to buy the "Premium AD Package" to use them fully.</p>
  
  <p>So I don't want to use the group information. I am interested in the roles that I assign my users that I have put into my application manifest.</p>
  
  <p>e.g</p>
  
  <pre><code>"appRoles": [
      {
        "allowedMemberTypes": [
          "User"
        ],
        "displayName": "Case Manager",
        "id": "{A_Guid}",
        "isEnabled": true,
        "description": "Case Manager's can create and assign Cases to other users",
        "value": "CaseManager"
      }, 
  </code></pre>
  
  <p>So, how can I use the Graph Api to tell me if a user has a particular role ?</p>