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 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?
CleanShot_2025-03-21_at_16.41.24.png
CleanShot_2025-03-21_at_16.41.51.png
CleanShot_2025-03-21_at_16.42.07.png
Was this page helpful?