• Resolved scmsteve

    (@scmsteve)


    I have tried to create a new role to grant the ability to a few select users so that they can change other user roles.

    I assigned the ability to list, edit and promote users, as well as list roles.

    However, when they view a user the only roles listed at the bottom are Contributor and Subscriber. They do not see any of the other user roles.

    I am sure I am missing something simple, but I can’t find it. Where can I look to help troubleshoot this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter scmsteve

    (@scmsteve)

    Slight correction, the only two roles available are “Customer” and “Subscriber”. Is this related to the use of the WooCommerce Add-On?

    Thread Starter scmsteve

    (@scmsteve)

    After more searching, and finally doing a ‘grep’ through the plugin code base for some keywords I realized that WooCommerce at some point along the way added specific restrictions to anyone with the Shop Manager role so the only roles they could manage were “Customer” and “Subscriber”.

    I was able to add a custom plugin (could have put it in functions.php) to filter this list and add the custom ones we wanted to use.

    References:

    In this article, they say Shop Manager will not be able to edit roles:

    https://woocommerce.com/posts/a-guide-to-woocommerce-user-roles-permissions-and-security/

    Here is a more detailed article about the security changes made in v3.4.6 and the filter to change it:

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

    I hope this helps someone else down the road if they run into this roadblock.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘promote_user + edit_user: Cannot see roles when editing a user’ is closed to new replies.