[GH-ISSUE #2394] Allow admin to update a user #26501

Closed
opened 2026-04-17 17:06:15 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @medihack on GitHub (Apr 21, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2394

Is this suited for github?

  • Yes, this is suited for github

Currently, the admin plugin allows the creation of a user (authClient.admin.createUser) and the removal of a user (authClient.admin.removeUser). It also allows for updating the password (authClient.admin.setUserPassword) and the role (authClient.admin.setRole). But there is no method to let the admin update other fields of the user.

Describe the solution you'd like

Have an authClient.admin.updateUser method that updates other fields or multiple other fields of the provided user.id.

Describe alternatives you've considered

Alternatives are to manually create a route for this and do it on the server side, or impersonate the user and call authClient.updateUser to update the user's own fields. Neither option is very convenient.

Additional context

No response

Originally created by @medihack on GitHub (Apr 21, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2394 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently, the admin plugin allows the creation of a user (`authClient.admin.createUser`) and the removal of a user (`authClient.admin.removeUser`). It also allows for updating the password (`authClient.admin.setUserPassword`) and the role (`authClient.admin.setRole`). But there is no method to let the admin update other fields of the user. ### Describe the solution you'd like Have an `authClient.admin.updateUser` method that updates other fields or multiple other fields of the provided `user.id`. ### Describe alternatives you've considered Alternatives are to manually create a route for this and do it on the server side, or impersonate the user and call `authClient.updateUser` to update the user's own fields. Neither option is very convenient. ### Additional context _No response_
GiteaMirror added the locked label 2026-04-17 17:06:15 -05:00
Author
Owner

@yigsvnsla commented on GitHub (Jul 6, 2025):

Any news on this feature? Apparently, the tests #2397 stopped on issues that had nothing to do with updating user data.

<!-- gh-comment-id:3041446347 --> @yigsvnsla commented on GitHub (Jul 6, 2025): Any news on this feature? Apparently, the tests #2397 stopped on issues that had nothing to do with updating user data.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26501