[GH-ISSUE #2585] Allow admin to get a user #26587

Closed
opened 2026-04-17 17:13:17 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @0xJJW on GitHub (May 8, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2585

Is this suited for github?

  • Yes, this is suited for github

The admin plugin does not currently support getting a user.

Describe the solution you'd like

New endpoint to get the user by id.

Describe alternatives you've considered

Creating a custom route in a standalone plugin

Additional context

No response

Originally created by @0xJJW on GitHub (May 8, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2585 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. The admin plugin does not currently support getting a user. ### Describe the solution you'd like New endpoint to get the user by id. ### Describe alternatives you've considered Creating a custom route in a standalone plugin ### Additional context _No response_
GiteaMirror added the locked label 2026-04-17 17:13:17 -05:00
Author
Owner

@1c7 commented on GitHub (May 22, 2025):

this should get merge & solve

<!-- gh-comment-id:2901493821 --> @1c7 commented on GitHub (May 22, 2025): this should get merge & solve
Author
Owner

@dosubot[bot] commented on GitHub (Aug 21, 2025):

Hi, @0xJJW. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested a new feature for the admin plugin to add an endpoint for retrieving a user by ID.
  • The goal was to avoid creating a custom route in a separate plugin.
  • Maintainer 1c7 supported the addition and indicated it should be merged.
  • No further discussion or updates have occurred since that support.

Next Steps:

  • Please let me know if this feature is still relevant to the latest version of better-auth by commenting on this issue.
  • If I don’t hear back within 7 days, this issue will be automatically closed.

Thanks for your understanding and contribution!

<!-- gh-comment-id:3211227324 --> @dosubot[bot] commented on GitHub (Aug 21, 2025): Hi, @0xJJW. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested a new feature for the admin plugin to add an endpoint for retrieving a user by ID. - The goal was to avoid creating a custom route in a separate plugin. - Maintainer 1c7 supported the addition and indicated it should be merged. - No further discussion or updates have occurred since that support. **Next Steps:** - Please let me know if this feature is still relevant to the latest version of better-auth by commenting on this issue. - If I don’t hear back within 7 days, this issue will be automatically closed. Thanks for your understanding and contribution!
Author
Owner

@0xJJW commented on GitHub (Aug 22, 2025):

This PR is low priority can can be dropped if desired. It is possible to query a user using the /admin/list-users api and passing searchField and searchValue.

For our use case we wanted a separate route. We have since created our own user management plugin.

<!-- gh-comment-id:3213913823 --> @0xJJW commented on GitHub (Aug 22, 2025): This PR is low priority can can be dropped if desired. It is possible to query a user using the `/admin/list-users` api and passing `searchField` and `searchValue`. For our use case we wanted a separate route. We have since created our own user management plugin.
Author
Owner

@dosubot[bot] commented on GitHub (Aug 22, 2025):

Thank you for your update and for letting us know. We'll go ahead and close this issue now. Feel free to reach out if you need further assistance!

<!-- gh-comment-id:3213923401 --> @dosubot[bot] commented on GitHub (Aug 22, 2025): Thank you for your update and for letting us know. We'll go ahead and close this issue now. Feel free to reach out if you need further assistance!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26587