IdentityUser is the standard ASP.NET Core Identity entity for an application’s user accounts. It is stored in the database and supplies the account model used by the default registration, login, and user-management features. Extend it when the application needs additional user data; otherwise, the standard type is often sufficient. section 23.3.2 section 23.3.3
Register IdentityUser with EF Core
Configure Identity with the standard user type and connect it to an EF Core context: builder.Services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true).AddEntityFrameworkStores<ApplicationDbContext>(); ApplicationDbContext inherits from IdentityDbContext, which provides the Identity data model. Applying migrations creates the Identity tables, including AspNetUsers, where IdentityUser records are stored. section 23.3.3
The default Identity experience uses IdentityUser for several account operations:
- Creates an account from an email address and password during registration. section 23.3.4
- Supports unique email addresses, password policies, account confirmation, lockout, and optional MFA configuration. section 23.3.4
- Works with UserManager<TUser> for creating, loading, and updating users, while SignInManager<TUser> handles sign-in and sign-out. section 23.7
