title: How to add Roles to Windows Authentication in ASP.NET Core
body: <p>I created an asp.net core project in visual studio 2015 with windows authentication. I can't figure out how to add roles to the Identity.</p>
  
  <p>I have a table with usernames for the windows account. And when the user opens the website the user is added to the Identity (I assume that's what happens, because I can display the username by User.Identity.Name) and I want to pull out Roles from another table and assign them to the user, is this possible? Or perhaps is there a better way to do it? (Why?, How?)</p>
  
  <p>I couldn't find any examples specific examples related to windows authentication, but I have read the documentation and went through <a href="https://github.com/blowdart/AspNetAuthorizationWorkshop" rel="noreferrer">this guide</a>. And I'm still stuck.</p>