open-admin icon indicating copy to clipboard operation
open-admin copied to clipboard

Multiple admin users with different permissions

Open philips81 opened this issue 1 year ago • 4 comments

Hi, I need to create an administrator user who can only access some admin menu items, but there is no section for creating different admin roles. Has someone already done it? Thanks

philips81 avatar Jan 16 '24 16:01 philips81

image

you can assign a role / permission to each menu item, adimistrator has access to all... create a role, your permissions, assign the permissions to the role.. assign the role to the menu, user cannot be an admin and only do some stuff.. need to define your permissions structure and create a user and assign the given roles/permissions

https://open-admin.org/docs/en/permission

RCyrix avatar Jan 16 '24 19:01 RCyrix

Hi, sorry but I can't figure out where I can associate the user with the new role. Or should I show what I want based on the user ID? I have a user who needs to access the admin panel with the "editor" role. This role allows to use only some admin menu voices.

thanks

philips81 avatar Jan 27 '24 08:01 philips81

https://open-admin.org/docs/en/permission

Please see the documentation regarding permissions

RCyrix avatar Jan 28 '24 16:01 RCyrix

admin_role_user

assign role on user controller

RCyrix avatar Jan 28 '24 16:01 RCyrix