UserManager<T>
UserManager<T> is an ASP.NET Core Identity service for managing users of type T, including their credentials, data, roles, and related operations.
Building Web APIs with ASP.NET Core
UserManager is an ASP.NET Core Identity service API that manages users and user-related operations, including role associations.
- How it is used
- Manages users during registration, login, and role-assignment operations in ASP.NET Core API controllers.
- How deep it goes
- Explains dependency injection and concrete asynchronous calls, but defers UserManager internals and Identity storage implementation.
- Examples
- Uses registration and login endpoints plus repeatable seeding of Moderator and Administrator roles.
- What you can do after
- Operate UserManager through dependency-injected controller code to create users, authenticate credentials, and assign roles.
Read how Building Web APIs with ASP.NET Core explains UserManager<T> →
ASP.NET Core in Action, 3e
UserManager<T> is an ASP.NET Core Identity service for creating, retrieving, updating, and managing users and their associated credentials and data.
- How it is used
- Manages Identity user accounts, credentials, database retrieval, password changes, and claims during registration and application workflows.
- How deep it goes
- Explains account creation and claim assignment with a simplified handler, while deferring complete UI, validation, and production boilerplate.
- Examples
- Uses ApplicationUser registration, a FullName claim, email confirmation, and Razor expressions that retrieve the claim value.
- What you can do after
- Apply it via ASP.NET Core Identity to create users, attach claims, generate confirmation tokens, and read claims after sign-in.
Read how ASP.NET Core in Action, 3e explains UserManager<T> →
Pro ASP.NET Core 7, Tenth Edition
UserManager<T> is the ASP.NET Core Identity service class for creating, retrieving, updating, and deleting users of type T and managing related user operations.
- How it is used
- Manages Identity users from administration pages and startup database-seeding code.
- How deep it goes
- Defines the generic service and core members with working Razor Page and seeding examples, without descending into implementation internals.
- Examples
- Uses a user-listing Razor Page, edit and delete links, and startup seeding for an Admin account.
- What you can do after
- Apply it via dependency injection to enumerate, create, update, delete, and seed Identity user accounts.
Read how Pro ASP.NET Core 7, Tenth Edition explains UserManager<T> →
Related concepts
- ASP.NET Core Identityused by · ASP.NET Core Identity is an extensible ASP.NET Core membership system for managing user accounts, credentials, claims, roles, authentication, and related identity data.
- authenticationuses · Authentication is the process of establishing or verifying the identity of a user, service, device, or other communicating entity.
- CreateAsyncuses · CreateAsync is an asynchronous ASP.NET Core Identity method that creates a new identity entity and reports whether the operation succeeded.
- dependency injectionuses · Dependency injection is a software design technique in which a component receives its dependencies from outside rather than creating or locating them internally.
- classkind of · A class is a programming-language construct that defines a type’s structure or behavior and provides a basis for creating or representing objects.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


