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
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?
authClient.admin.listUsers with my custom role, I receive the 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?


