User

Describes a user by name. This is the plain data type from milvus/types/User.ts — not to be confused with the gRPC User resource client.

export type User = { name: string };

FIELDS:

  • name (string) -

    The user name.

Example

import { MilvusClient } from '@zilliz/milvus2-sdk-node';

const milvusClient = new MilvusClient({
    address: 'localhost:19530',
    token: 'root:Milvus',
});

const res = await milvusClient.describeUser({
    username: 'root',
});

console.log(res.results[0]?.user); // User

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?