[GH-ISSUE #4226] Admin plugin: support creating users without passwords #9870

Closed
opened 2026-04-13 05:39:29 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @yakupensarsayin on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4226

Is this suited for github?

  • Yes, this is suited for github

I'm building an internal app for a small to medium-sized company that doesn't use SSO. They prefer not to manage passwords and want users to log in via magic link sent to their company email addresses. Normally, magic link signup is possible, but since this is an internal app, sign-up is disabled.

It would be really useful to have an API in the admin plugin for creating users without a password. Currently, registering via magic link adds the user directly to the users table, without touching the accounts table.

Describe the solution you'd like

It would be great if the admin plugin supported passwordless user creation. Ideally, the admin could create a user in the users table, optionally generate a magic link that expires after a configurable time, and let the user log in without needing a password. Does this align with Better Auth's vision?

Describe alternatives you've considered

I could create a separate API to manually insert users into the DB, but having a built-in admin plugin feature would be cleaner and more maintainable.

Additional context

I'm happy to implement this if it fits the Better Auth philosophy. I just wanted to check before starting work.

Originally created by @yakupensarsayin on GitHub (Aug 25, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4226 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I'm building an internal app for a small to medium-sized company that doesn't use SSO. They prefer not to manage passwords and want users to log in via magic link sent to their company email addresses. Normally, magic link signup is possible, but since this is an internal app, sign-up is disabled. It would be really useful to have an API in the admin plugin for **creating users without a password**. Currently, registering via magic link adds the user directly to the `users` table, without touching the `accounts` table. ### Describe the solution you'd like It would be great if the admin plugin supported passwordless user creation. Ideally, the admin could create a user in the users table, optionally generate a magic link that expires after a configurable time, and let the user log in without needing a password. Does this align with Better Auth's vision? ### Describe alternatives you've considered I could create a separate API to manually insert users into the DB, but having a built-in admin plugin feature would be cleaner and more maintainable. ### Additional context I'm happy to implement this if it fits the Better Auth philosophy. I just wanted to check before starting work.
GiteaMirror added the enhancementlocked labels 2026-04-13 05:39:29 -05:00
Author
Owner

@maelp commented on GitHub (Aug 27, 2025):

I'm interested too!

<!-- gh-comment-id:3227821835 --> @maelp commented on GitHub (Aug 27, 2025): I'm interested too!
Author
Owner

@shmezi commented on GitHub (Sep 10, 2025):

Bump, I'm interested too.

<!-- gh-comment-id:3273968899 --> @shmezi commented on GitHub (Sep 10, 2025): Bump, I'm interested too.
Author
Owner

@yakupensarsayin commented on GitHub (Sep 10, 2025):

Bump, I'm interested too.

If you want to work together on this, hmu at discord username povicta

<!-- gh-comment-id:3274219912 --> @yakupensarsayin commented on GitHub (Sep 10, 2025): > Bump, I'm interested too. If you want to work together on this, hmu at discord username povicta
Author
Owner

@shmezi commented on GitHub (Sep 14, 2025):

Bump, I'm interested too.

If you want to work together on this, hmu at discord username povicta

shmezi
Hit me up, I'd love to contribute!

<!-- gh-comment-id:3289244019 --> @shmezi commented on GitHub (Sep 14, 2025): > > Bump, I'm interested too. > > If you want to work together on this, hmu at discord username povicta shmezi Hit me up, I'd love to contribute!
Author
Owner

@shmezi commented on GitHub (Sep 14, 2025):

Oh thought u wanted mine.. oops ill dm u

<!-- gh-comment-id:3289244421 --> @shmezi commented on GitHub (Sep 14, 2025): Oh thought u wanted mine.. oops ill dm u
Author
Owner

@AndyClausen commented on GitHub (Oct 22, 2025):

Any news on this? I've resorted to deleting the account manually, and it feels so dirty.

<!-- gh-comment-id:3432911051 --> @AndyClausen commented on GitHub (Oct 22, 2025): Any news on this? I've resorted to deleting the account manually, and it feels so dirty.
Author
Owner

@depbruno commented on GitHub (Nov 7, 2025):

bumping, im interested too

<!-- gh-comment-id:3501468428 --> @depbruno commented on GitHub (Nov 7, 2025): bumping, im interested too
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9870