A Role that allows the adding of a different user to a different role
-
I have added a role with a number of capabilities, but there is one capability I want the role to have the eludes me.
I want a user assigned to the new role to be able to assign users to other roles.
A few things I have tried to try and make this work:
1) The other roles must only have capabilities that are MATCHING or ‘LESS’ than the role of the user who is assigning them.
2) Make the user who is assigning the role to the other users also a member of the other roles
3) Add all capabilities with ‘other’ in them to the role for the user who will be assigning the different roles to others. (This adds capabilities that I don’t want the assigning user to have)
4) Activated all of the following capabilities, one by one and together to see if it works:
create_roles
edit_roles
list_roles
delete_rolesure_create_capabilities
ure_create_roles
ure_delete_capabilities
ure_delete_roles
ure_edit_roles
ure_manage_options
ure_reset_rolesBut again these give permission to the assigning user I don’t want it have (and it also doesn’t work).
I know that this works somehow because if I activate EVERY capability for the role, the ‘Role’ drop down menu on the user edit/add page becomes populated with the other roles, otherwise it just lists the primary role.
Please help!
- The topic ‘A Role that allows the adding of a different user to a different role’ is closed to new replies.