• Good Evening,
    I have set up a wp site together with WooCommerce. I would like to create a separate role that has the capabilities of the “shop manager” role, but I want to add to it the ability to add new users and to be able to make any edit and change whatever it wants in users profiles.
    Can this be done?

    • This topic was modified 1 year, 8 months ago by Be Dark.
Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    Yes, it’s possible. For example “Add Role” with
    ID: shop_man2,
    name: “Shop Man 2”,
    make copy of: shop_manager

    Grant capability ‘create_users’ from the Users group and it will work as you described.

    Potential problem this role will not can any new capability which can appear at WC built-in shop_manager_role after one of the future updates. So you will need to check from time to time is there a differencies between 2 roles.

    If you will wish to overcome this problem, grant to user new added role which can: read, create_users capabilities, and grant shop_manager role to the same user as a secondary one.

    shop_manager role is limited by default by access to the ‘customer’ role only. It’s possible to extend this following this article:

    https://woocommerce.wordpress.com/2018/10/11/woocommerce-3-4-6-security-fix-release-notes/

Viewing 1 replies (of 1 total)
  • The topic ‘New user role with capabilities of Shop Manager” role+ Add new/Edit users?’ is closed to new replies.