Plugin Admin: ListUsers function with casse #1674

Closed
opened 2026-03-13 08:55:17 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Clems02 on GitHub (Aug 10, 2025).

Is this suited for github?

  • Yes, this is suited for github

With the admin plugin and the use of the "await auth.api.listUsers()" function, we should be able to choose the case in order to search for users. Currently, if we run a searchValue: "alexandre", we will not get users with the first name "Alexandre" because of the capital A.

Describe the solution you'd like

Internally, we should not take into account capital letters or accents in order to match queries as simply as possible. Or we should propose a configuration for this.

Describe alternatives you've considered

Internally, we should not take into account capital letters or accents in order to match queries as simply as possible. Or we should propose a configuration for this.

Additional context

No response

Originally created by @Clems02 on GitHub (Aug 10, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. With the admin plugin and the use of the "await auth.api.listUsers()" function, we should be able to choose the case in order to search for users. Currently, if we run a searchValue: "alexandre", we will not get users with the first name "Alexandre" because of the capital A. ### Describe the solution you'd like Internally, we should not take into account capital letters or accents in order to match queries as simply as possible. Or we should propose a configuration for this. ### Describe alternatives you've considered Internally, we should not take into account capital letters or accents in order to match queries as simply as possible. Or we should propose a configuration for this. ### Additional context _No response_
GiteaMirror added the enhancement label 2026-03-13 08:55:17 -05:00
Author
Owner

@frectonz commented on GitHub (Aug 11, 2025):

The feature you request is outside the bounds of whats possible with better auth's internal ORM. I recommend creating your own custom list users endpoint, that will perform the case sensitive and case insensitive queries.

@frectonz commented on GitHub (Aug 11, 2025): The feature you request is outside the bounds of whats possible with better auth's internal ORM. I recommend creating your own custom list users endpoint, that will perform the case sensitive and case insensitive queries.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#1674