Admin Plugin: does listUsers work ? #195

Closed
opened 2026-03-13 07:37:07 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @MrKepzie on GitHub (Nov 8, 2024).

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). **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 ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#195