UserManager<TUser>.GetUsersForClaimAsync(Claim) UserManager<TUser>.GetUsersForClaimAsync(Claim) Method

Definition

Returns a list of users from the user store who have the specified claim.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim);
abstract member GetUsersForClaimAsync : System.Security.Claims.Claim -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
override this.GetUsersForClaimAsync : System.Security.Claims.Claim -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>

Parameters

claim
Claim Claim

The claim to look for.

Returns

Task<IList<TUser>>

A Task<TResult> that represents the result of the asynchronous query, a list of TUsers who have the specified claim.

Applies to