• Resolved segovia

    (@segovia)


    I’m wondering if there’s a way currently to change the user level access to assign the “Switch User” function to a lower tier than the site admin?

    Currently I’m running a Multisite Network and I’ve setup several custom roles using Press Permit (similar to Role Scoper). These new rolls vary between level_7 to level_9 but they are not Administrators or Super Admins.

    a) Is this something you might consider adding to a future update of the plugin?

    b) Is there a few lines of code I could hack to make it work for me in the short term?

    Thanks,
    Segovia

    https://wordpress.org/plugins/user-switching/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hi segovia,

    I won’t be adding this option into the plugin, but it can be done with some code. By default, a user needs the ability to edit the user they are trying to switch to (which maps to the edit_users capability).

    If you allow lower level users to switch users, there are several things to consider. For example, they would need a screen in the admin area from which they could switch users from, as only Administrators by default have access to the Users menu.

    In addition, should these lower level users be allowed to switch to any other account regardless of its role? Or should, for example, an Editor only be allowed to switch to other Editor accounts and lower accounts? Otherwise, you’re effectively granting this lower level user the ability to edit users and the ability to switch into administrator accounts.

    If you know what you’re doing, you can start with the User Switching For Regular Admins plugin, and change the occurrences of ‘administrator’ to the role you want to allow to switch users.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Sorry there was an error in my previous post which I’ve just corrected.

    Thread Starter segovia

    (@segovia)

    Thanks, I’ll give it a shot.

    And yes, if there were such a feature in a future version of your plugin, it would require that user levels that are granted switching capabilities are only able to switch to users of a lower role than themselves. Totally agreed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change User Level Access’ is closed to new replies.