Skip to content

List Users

This example assumes using Vectara; is in scope and apiKey contains your Vectara API key.

1
2
3
4
5
6
7
8
using var client = new VectaraClient(apiKey);

ListUsersResponse response = await client.Users.ListAsync();

foreach (var user in response.Users ?? [])
{
    Console.WriteLine($"User: {user.Email} (ID: {user.Id})");
}