Back

.NET list all users in the auth

  • 0
  • Tools
  • Users
  • Self Hosted
Suiii
19 Aug, 2023, 01:32

UserList result = await _appwriteManager.Users.List();

I can see the total 100 user in result. but only 25 users are returned. how can I specify to return all 100 users

TL;DR
The user wants to know how to retrieve all users in the auth using .NET. They have tried using pagination but are only getting 25 users out of a total of 100. They are seeking a solution to return all 100 users.
Drake
19 Aug, 2023, 01:38

You'll need to paginate: https://appwrite.io/docs/pagination

Suiii
19 Aug, 2023, 01:46
TypeScript
            queries.Add(Query.Limit(delUserArr.Length));

            result = await _appwriteManager.Users.List(
                queries: queries
            );
            idUsers = result.Users.Select(x => x.Id).ToList();```
Suiii
19 Aug, 2023, 01:47

still yet 25 records

Drake
19 Aug, 2023, 01:48

You paginate with either a cursor or offset

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

Suiii
19 Aug, 2023, 01:51

Thanks

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more