title: Azure AD does not emit group claims
body: <p>I am trying to set up role based access via groups for my application on azure. I've followed following articles (Sorry for posting links as code, wasn't allowed to post more than 1 link). However my app doesn't receive any group claims.</p>
  
  <pre><code>https://www.simple-talk.com/cloud/security-and-compliance/azure-active-directory-part-4-group-claims/
  
  http://www.dushyantgill.com/blog/2014/12/10/roles-based-access-control-in-cloud-applications-using-azure-ad/
  </code></pre>
  
  <p><strong>What I've done so far</strong></p>
  
  <p><strong>Manifest file</strong></p>
  
  <pre><code>    "appId": "d754a979-689d-45f8-8c63-983de55840da"
  "appRoles": [
      {
        "allowedMemberTypes": [
          "User"
        ],
        "displayName": "Manager",
        "id": "1e06dae5-467a-40cf-a9a6-14baf3969472",
        "isEnabled": true,
        "description": "Manages",
        "value": "Manager"
      },
      {
        "allowedMemberTypes": [
          "User"
        ],
        "displayName": "Issuer",
        "id": "da85f458-720d-4c09-861f-92f5c465ee3e",
        "isEnabled": true,
        "description": "Issues",
        "value": "Issuer"
      },
      {
        "allowedMemberTypes": [
          "User"
        ],
        "displayName": "Supervisor",
        "id": "d64807d4-6e12-4637-a049-2a61b250507b",
        "isEnabled": true,
        "description": "Can perform any function",
        "value": "Supervisor"
      }
    ],
    "availableToOtherTenants": false,
    "displayName": "traffic",
    "errorUrl": null,
    "groupMembershipClaims": "SecurityGroup",
    "homepage": "https://myapp.ca",
    "identifierUris": [
      "https://myapp.azurewebsites.net/"
    ],
  </code></pre>
  
  <p>Also added relevant groups to app on azure (assume that the group contains at least one user)
  <a href="https://i.stack.imgur.com/n9dwt.png" rel="nofollow noreferrer">Groups Assignment on Azure</a></p>
  
  <p>But I don't get any group claims in my app. The following code results in a count of zero, always. Any ideas? Thanks in advance.</p>
  
  <pre><code>var claims = ClaimsPrincipal.Current.Claims.Where(c =&gt; c.Type == "groups");
  
              Debug.Print("Total Group Claims in HomeController #### "+claims.Count());
  
              foreach (Claim c in claims)
              {
                  Debug.Print("%%%%%%%% " + c.Value + " %%% VALUETYPE %%% " + c.Type);
              }
  </code></pre>