[GH-ISSUE #3270] Admin plugin: allow to override built-in access control #18180

Open
opened 2026-04-15 16:33:55 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @typed-sigterm on GitHub (Jul 5, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3270

Originally assigned to: @ping-maxwell on GitHub.

Is this suited for github?

  • Yes, this is suited for github

Currently, the admin plugin enforces its built-in RBAC-like access control model. In our project, it's not enough - we are using Casbin. It would be nice if we could integrate Casbin with the admin plugin.

Describe the solution you'd like

Custom hasPermission isAdmin implementation.

Describe alternatives you've considered

Seperated REST API works

Additional context

No response

Originally created by @typed-sigterm on GitHub (Jul 5, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3270 Originally assigned to: @ping-maxwell on GitHub. ### 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 enforces its built-in RBAC-like access control model. In our project, it's not enough - we are using Casbin. It would be nice if we could integrate Casbin with the admin plugin. ### Describe the solution you'd like Custom `hasPermission` `isAdmin` implementation. ### Describe alternatives you've considered Seperated REST API works ### Additional context _No response_
GiteaMirror added the organization label 2026-04-15 16:33:55 -05:00
Author
Owner

@khrnchn commented on GitHub (Jul 19, 2025):

noice

<!-- gh-comment-id:3091332635 --> @khrnchn commented on GitHub (Jul 19, 2025): noice
Author
Owner

@elvenking commented on GitHub (Sep 5, 2025):

this feature looks really good, any update ?

<!-- gh-comment-id:3257891962 --> @elvenking commented on GitHub (Sep 5, 2025): this feature looks really good, any update ?
Author
Owner

@dosubot[bot] commented on GitHub (Dec 5, 2025):

Hi, @typed-sigterm. 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 support for custom RBAC implementations in the admin plugin by allowing overrides for hasPermission and isAdmin methods.
  • This feature would enable integration with systems like Casbin.
  • Currently, you use a separate REST API as a workaround.
  • Other users have shown interest and asked for updates.
  • No official response or progress has been made on this feature yet.

Next Steps:

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

Thank you for your understanding and contribution!

<!-- gh-comment-id:3617539287 --> @dosubot[bot] commented on GitHub (Dec 5, 2025): Hi, @typed-sigterm. 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 support for custom RBAC implementations in the admin plugin by allowing overrides for `hasPermission` and `isAdmin` methods. - This feature would enable integration with systems like Casbin. - Currently, you use a separate REST API as a workaround. - Other users have shown interest and asked for updates. - No official response or progress has been made on this feature yet. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of better-auth by commenting here. - If I don’t hear back within 7 days, I will automatically close this issue. Thank you for your understanding and contribution!
Author
Owner

@typed-sigterm commented on GitHub (Dec 6, 2025):

keep open

<!-- gh-comment-id:3619346006 --> @typed-sigterm commented on GitHub (Dec 6, 2025): keep open
Author
Owner

@dosubot[bot] commented on GitHub (Mar 7, 2026):

Hi, @typed-sigterm. 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 support for custom RBAC implementations in the admin plugin by allowing overrides for hasPermission and isAdmin functions.
  • This feature would enable integration with external systems like Casbin.
  • Several users, including yourself and elvenking, have shown interest and asked for updates.
  • The issue has been marked as stale previously, but you confirmed it should remain open.
  • No official progress or implementation has been made on this feature yet.

Next Steps:

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

Thank you for your understanding and contribution!

<!-- gh-comment-id:4016818522 --> @dosubot[bot] commented on GitHub (Mar 7, 2026): Hi, @typed-sigterm. 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 support for custom RBAC implementations in the admin plugin by allowing overrides for `hasPermission` and `isAdmin` functions. - This feature would enable integration with external systems like Casbin. - Several users, including yourself and elvenking, have shown interest and asked for updates. - The issue has been marked as stale previously, but you confirmed it should remain open. - No official progress or implementation has been made on this feature yet. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of better-auth by commenting here. - If I do not hear back within 7 days, the issue will be automatically closed. Thank you for your understanding and contribution!
Author
Owner

@typed-sigterm commented on GitHub (Mar 7, 2026):

no

<!-- gh-comment-id:4016876535 --> @typed-sigterm commented on GitHub (Mar 7, 2026): no
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#18180