Skip to main content
All docs
V24.2
.NET 8.0+
  • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

UserManager Members

Exposes API required to manage user objects in the database. Use Dependency Injection to access this class’s instance in a .NET 6+ application.

Constructors

Name Description
UserManager(IServiceProvider, IPrincipalProvider, IUserLockout, IOptions<SecurityOptions>) Initializes a new instance of the UserManager class with specified settings. You do not need to call this constructor; it is called internally by the DI container.

Methods

Name Description
AccessFailed(Object) Increases the counter for failed login attempts by a specified user. If the counter value exceeds the limit, the user account is locked out.
AddLogin<TUser>(TUser, String, String) Adds login information required to store the specified user’s login data for the specified authentication provider.
CreateUser<TUser>(IObjectSpace, IPrincipal, Action<TUser>, Boolean) Creates a new user with the specified settings.
CreateUser<TUser>(IObjectSpace, String, String, Action<TUser>) Creates a new user with the specified settings.
CreateUser<TUser>(IObjectSpace, String, String, String, Action<TUser>, Boolean) Creates a new user with the specified settings.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FindUserByKey<TUser>(IObjectSpace, String) Finds an application user based on the specified user object ID.
FindUserByLogin<TUser>(IObjectSpace, String, String) Finds an application user based on the specified user login information.
FindUserByName<TUser>(IObjectSpace, String) Finds an application user based on the specified user name.
FindUserByPrincipal<TUser>(IObjectSpace, IPrincipal) Finds an application user based on the specified claims principal.
GetAuthenticationToken<TUser>(TUser, Int32, IEnumerable<Claim>) Gets an authentication token for the specified user.
GetCurrentPrincipal() Gets the current user’s ClaimsPrincipal object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLoginProviderName(IPrincipal) Takes a claims principal and returns the name of the login provider that produced this claims principal.
GetProviderUserKey(IPrincipal) Returns the value of the User ID claim from the specified claims principal.
GetType() Gets the Type of the current instance. Inherited from Object.
GetUserName(IPrincipal) Returns the value of the User Name claim from the specified claims principal.
IsLockedOut(Object) Gets a value that indicates whether the specified user account is locked out by “Brute Force” attack protection.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ResetLockout(Object) Resets the account lockout for the specified user.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also