Help with "adminRoles"

I configured it:
plugins: [
admin({
roles: {},
adminRoles: ["admin", "superadmin"],
})
],
plugins: [
admin({
roles: {},
adminRoles: ["admin", "superadmin"],
})
],
And I created a user using "superadmin". But when I try to perform an action, like creating another user, I get the message "You are not allowed to create users". Do I need to do any other configuration besides just registering "superadmin" in the admin() plugin?
3 Replies
nikatune
nikatune4mo ago
adminUserIds:[] use
fabrizio
fabrizioOP4mo ago
Ok, thanks
nikatune
nikatune4mo ago
you're welcome

Did you find this page helpful?