milvus-logo
LFAI
< Docs
  • C#

SelectUserAsync()

Gets information about a user, including optionally all its roles.

Invocation

await milvusClient.SelectUserAsync(username, includeRoleInfo = true, cancellationToken = default);

Parameters

ParameterDescriptionTypeRequired
usernameThe name of the user to be selected.stringTrue
includeRoleInfoWhether to include role information in the results.boolFalse
cancellationTokenThe token to monitor for cancellation requests. The default value is CancellationToken.None.CancellationTokenFalse

Return

A UserResult instance containing information about the user, or null if the user does not exist.