title: getting group information from Claimsidentity
body: <p>Im using azure active directory and I have users in 2 groups, when a user logs into my app (mvc5 &amp; c#) I want to be able to determine what groups they belong to. How do I do this ?  I've tried</p>
  
  <pre><code> ClaimsIdentity userClaimsId = ClaimsPrincipal.Current.Identity as ClaimsIdentity;
          var groups = userClaimsId.FindAll(ClaimTypes.GroupSid);
          var g = userClaimsId.Claims.Select(x =&gt; x.Type.Equals("groups")).ToList();
  </code></pre>
  
  <p>but it doesn't work.  Id eventually like to create an attribute to decorate controller methods as well as possibly an extension method.  But in the meantime Id like to be able to see the groups in the ClaimsIdentity.  Can anyone help ?</p>