milvus-logo
LFAI
< Docs
  • C#

SelectRoleAsync()

Gets information about a role, including optionally all its users.

Invocation

await milvusClient.SelectRoleAsync(roleName, includeUserInfo = true, cancellationToken = default);

Parameters

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

Return

A RoleResult instance containing information about the role, or null if the role does not exist.

Feedback

Was this page helpful?