[Resolved] Which Capability is required to change/assign Additional Roles
This thread is resolved. Here is a description of the problem and solution.
Problem:
How to assign user capabilities to the "Shop Manager" role created by WooCommerce using Toolset Access.
Solution:
If you want to allow WC users to manage other users you have to disable that filter from WooCommerce. Access do not have any solution for this as the filter is added from WooCommerce.
I have a role Shop Manager who is a non administrator and I would it to be able to change/assign Additional Roles to user. I have been playing around with different capabilities using the Access plugin but can't figure out which one is required.
On the attached picture the sam user is being viewed with Admin role on the left and Shop Manager on the right.
Thanks for your reply, the promote users capability has been assigned to the Shop Manager role. Yes I can see the primary role but the other "Additional Roles" created with Access are not available like for the Administrator.
Can you please share admin access details as well as access details for the Shop Manager role user (as I understand, you want to allow Shop Manager user to control the roles) correct?
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I try to reproduce the issue with the clean WordPress site where only Toolset + Woocommerce plugin installed and I assigned the capabilities like (promote_users,edit_user,list_users) to Shop Manager role and then created few users with customer and subscriber role.
After that I logged in as shop manager role but when I try to edit the customer user I do not see all roles listed with the "Additional Roles" section. It looks like there is the issue and I've escalated this issue in front of our next-level support. Please hold on for further updates.
which is added to file plugins/woocommerce/includes/wp-user-functions.php
If you want to allow WC users to manage other users you have to disable that filter from WooCommerce. Access do not have any solution for this as the filter is added from WooCommerce.
Thanks for the info, the code provided didn't help with the solution, also changing the file would have meant that at next update I would be back to square one.
Once I understood the issue came from the Woo Shop Manager role and proved that Toolset was not the problem by just assigning the correct role to a basic user I came to the conclusion that if I create a duplicate role of Woo Shop Manager and assign the capabilities required to assign additional roles it should work and it did.
So brilliant! Thanks for putting in the right direction!