milvus-logo
LFAI
< Docs
  • C#

AddUserToRoleAsync()

Adds a user to a role.

Invocation

await milvusClient.AddUserToRoleAsync(username, roleName, cancellationToken = default);

Parameters

ParameterDescriptionTypeRequired
usernameThe name of the username to be added to the role.stringTrue
roleNameThe name of the role the user will be added to.stringTrue
cancellationTokenThe token to monitor for cancellation requests. The default value is CancellationToken.None.CancellationTokenFalse

Return

This method does not return any value.

Feedback

Was this page helpful?