[GH-ISSUE #465] Admin Plugin: does listUsers work ? #25602

Closed
opened 2026-04-17 15:52:08 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @MrKepzie on GitHub (Nov 8, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/465

Describe the bug

The following call returns always empty:

 const usersRep = await auth.api.listUsers({query: {
                search: {
                    field: "email",
                    operator: "contains",
                    value: "@",
                },
                sortBy: "createdAt",
                sortDirection: "desc",
                offset: 0,
                limit: 1000
            }
 });

Using postgres DB

Also question as documentation is not helpful: what is the meaning of "filter" does it remove results that do not match the filter or it only accepts search results that also match the filters ?

Originally created by @MrKepzie on GitHub (Nov 8, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/465 **Describe the bug** The following call returns always empty: ``` const usersRep = await auth.api.listUsers({query: { search: { field: "email", operator: "contains", value: "@", }, sortBy: "createdAt", sortDirection: "desc", offset: 0, limit: 1000 } }); ``` Using postgres DB Also question as documentation is not helpful: what is the meaning of "filter" does it remove results that do not match the filter or it only accepts search results that also match the filters ?
GiteaMirror added the locked label 2026-04-17 15:52:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25602