milvus-logo
LFAI
< Docs
  • C#

GrantRolePrivilegeAsync()

Revokes a privilege from a role.

Invocation

await milvusClient.GrantRolePrivilegeAsync(roleName, object, objectName, privilege, cancellationToken = default);

Parameters

ParameterDescriptionTypeRequired
roleNameThe name of the role to be granted a privilege.stringTrue
objectA string describing the object type on which the privilege is to be granted, e.g. "Collection".stringTrue
objectNameA string describing the specific object on which the privilege will be granted. Can be "*".stringTrue
privilegeA string describing the privilege to be granted, e.g. "Search".stringTrue
cancellationTokenThe token to monitor for cancellation requests. The default value is CancellationToken.None.CancellationTokenFalse

Return

This method does not return any value.