I\'m using ASP.NET Core 2.1 Identity. I\'ve overridden IdentityUser because I need to add some additional properties on the user.
In Startup.cs
servic
In Startup.cs, I was missing AddRoles so
services.AddDefaultIdentity() .AddEntityFrameworkStores();
should be
services.AddDefaultIdentity() .AddRoles() .AddEntityFrameworkStores();
Note: The order is critical. AddRoles must come before AddEntityFrameworkStores
AddRoles
AddEntityFrameworkStores