title: .net core [Authorize] using ClaimsIdentity with AAD groups
body: <p>I am seeing this in my <code>((System.Security.Claims.ClaimsIdentity)User.Identity).Claims</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/ppt6d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ppt6d.png" alt="enter image description here"></a></p>
  
  <p>How do I make use of these group GUID's I am getting from our Azure AD (to secure the endpoint based on group membership)?</p>
  
  <pre><code>[Authorize(Roles="&lt;group guid here&gt;")]
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[Authorize("&lt;group guid here&gt;")]
  </code></pre>
  
  <p>Or do I need to set something up in the <code>startup.cs</code> file?</p>