Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Custom Admin Role - Admin Plugin - Better Auth
BA
Better Auth
•
11mo ago
•
6 replies
bpurdyiv
Custom Admin Role - Admin Plugin
I am trying to add an additional Admin Role to the Admin Plugin
. I believe I have it set up according to the docs
, but when I try to for example run
authClient.admin.listUsers
authClient.admin.listUsers
with my custom role
, I receive the
YOU_ARE_NOT_ALLOWED_TO_LIST_USERS
YOU_ARE_NOT_ALLOWED_TO_LIST_USERS
Error
. If I switch that user
's role back to the default of
'admin
' everything works as expected
.
I added screenshots of auth
.ts
, permissions
.ts
, and the function used to list users
.
Anyone have an idea on what I am doing wrong when creating a custom role
?
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
user role / admin plugin
BA
Better Auth / help
5mo ago
Admin + Organization Plugin: Role Columns
BA
Better Auth / help
12mo ago
Default role on signUpEmail - Admin Plugin
BA
Better Auth / help
3mo ago
Admin Plugin - access "role" client side
BA
Better Auth / help
13mo ago