Grantor
Describes who granted a privilege and which privilege was granted.
export type Grantor = { user: User; privilege: PrivilegeEntity };
FIELDS:
user (User) -
The grantor. See User.
privilege (PrivilegeEntity) -
The granted privilege. See PrivilegeEntity.
Example
import { MilvusClient } from '@zilliz/milvus2-sdk-node';
const milvusClient = new MilvusClient({
address: 'localhost:19530',
token: 'root:Milvus',
});
const res = await milvusClient.listGrants({
roleName: 'exampleRole',
});
console.log(res.entities[0]?.grantor); // Grantor