• Resolved gonzalosp

    (@gonzalosp)


    Hi,

    I just cloned the Admin role, and assigned a user to it, but the user cannot edit other users.
    The backmenu shows all the functions and in capabilities all the user options are checked, also the manage_options. Even that’s the case the user assigned to this role cannot see the option to edit other’s users profile from the menu ‘Users’.
    Where is the problem?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Noel

    (@noelalvarez)

    @gonzalosp what are the capabilities related to users have you checked for that Role you created? Coz this is clearly some issue with missing capability that you have added to that new Role.
    Make sure the Role has these:

    list_users
    remove_users
    promote_users
    edit_users
    create_users
    delete_users

    Thread Starter gonzalosp

    (@gonzalosp)

    Hi Noel,

    Thanks for the quick reply. I made sure that the user has those capabilities, all the following have been checked:

    Backend edit_users
    Backend delete_users
    Backend create_users
    Backend list_users
    Backend remove_users
    Backend add_users
    Backend promote_users

    Any other idea that I can try to fix the issue?

    Thanks

    Thread Starter gonzalosp

    (@gonzalosp)

    *I want to add that I am running a multisite WP installation.
    Thanks

    Noel

    (@noelalvarez)

    oh I see. make sure you have properly setup AAM for multisite then.
    This might help –> https://aamplugin.com/help/aam-and-wordpress-multisite-support

    Thread Starter gonzalosp

    (@gonzalosp)

    Hi Noel,

    I just read the article and I still cannot find the issue.
    I activated the plugin in all the sites under the multisite and that didn’t help.
    It says that I could install the multisite extension but I don’t want to manage all the users from the multisite, I can manage them from each of the individual sites under multisite. I am still running some tests but although the users have all the capabilities they cannot edit users (I clone the Administrator roles which can do that).
    Any other idea?

    Thread Starter gonzalosp

    (@gonzalosp)

    Hi Noel,

    Did you have time to look at this issue?

    Thanks

    Plugin Author AAM Plugin

    (@vasyltech)

    @gonzalosp,

    Thank you for the detailed explanation and patience. @noelalvarez reached out to me to help with your case and I’ve done a bit of research.

    Apparently that is intended WordPress core behavior. By default you can manage (edit, delete, add etc) users only from the Network Panel or only if you are the Super Admin user. That is why even cloning administrator role, will not give the “super” power to your users that are attached to cloned admin role.

    However there is a trick that you can apply. Create a custom capability manage_network_users and make sure that it is assigned to the cloned role and you should be good to go.

    Keep us updated if anything.

    Regards,
    Vasyl

    Thread Starter gonzalosp

    (@gonzalosp)

    Thank you for the update, I just tried it and it works fine!

    Thread Starter gonzalosp

    (@gonzalosp)

    Hi,

    I just tested one user to which I added the manage_network_users’s capability.
    When I try to edit a user I get the following: ‘You do not have permission to edit this user.’
    Any idea what could be the problem?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Cloning a Role doesn’t share the same functionality’ is closed to new replies.