Support » Plugin: View Admin As » No Users Found

  • lwatkins

    (@lwatkins)


    We have a user role that has view_admin_as_full_access_capabilities, but when they search for a user it keeps saying no users found.

    They can view the View As option at the top. They just can’t find any users to switch to.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @lwatkins

    view_admin_as_full_access_capabilities isn’t known to me. Do you mean the default view_admin_as capability?

    Also, did you make sure they also have the edit_users and in a network installation edit_network_users capabilities?

    See documentation: https://github.com/JoryHogeveen/view-admin-as/wiki/Custom-capabilities

    Cheers, Jory

    Thread Starter lwatkins

    (@lwatkins)

    They do have edit_users capability and the view_admin_as capability, and view_admin_as_role_defaults. However, when searching for users they can’t find users that are in the system. They enter an email address in the view admin as search box and it says it does not exist. The same for names. But it really does. I can search for the same information and find it just fine.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lwatkins

    Just tested locally and I cannot seem to reproduce your issue.
    Though I do some extra security checks before returning any users;

    1. If a searched user has the view_admin_as or edit_users it will be removed from the list unless the user that is searching is a superior admin.

    2. I also check the edit_user (note: singular) with the searched user ID param to validate of the user that is searching can edit that specific user.

    3. Also note that user cannot search for users that are of their own role (equal users).

    Let me know!

    Cheers, Jory

    Thread Starter lwatkins

    (@lwatkins)

    Thanks you for checking. I need to give the permissions to those that are not super admins. We have staff that needs that functionality desperately. We have staff that need to support staff that manage users and they need to login as them to assist them. We right now have many super admins because they need the view as functionality. But we need only me and one other super admin for security purposes.

    I read the documentation and thought that I had given the correct permissions to so they could search for the users.

    They all have edit user permissions and they all have greater roles than what they are searching for. The issue is the frist where the users they are searching for are removed from the list.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lwatkins

    Correct, your permissions are important here.

    Your non-superadmins can only view users that do not have access to this plugin (eg. view-admin-as capability).

    So you can best give your staff the appropriate roles on the blogs and add the capabilities to those roles. Then you can disable Super Admin access for those users and they will still be able to use this plugin on the blogs they are listed on.

    See overview below:

    Superior admins (See filter: https://github.com/JoryHogeveen/view-admin-as/wiki/Filters#view_admin_as_superior_admins)

    Are always allowed to see anyone, except other superior admins.
    Can only be set through the filter.

    Super Admins (network)

    Can see all non-super admins from all sites they belong to.

    Administrators (non-network)

    Can see all non-administrators.

    Other: Administrators (network) and other roles in network or non-network installations.

    Need to be granted the view-admin-as, edit-users and manage-network-users capabilities to view other users on the same blog.
    Cannot see or edit users of the same of higher roles through this plugin.
    Cannot see users that have the view-admin-as capability.
    Cannot see other administrators in a non-multisite installation.

    Note! You can edit the role capabilities through the Role Manager module of this plugin!
    https://github.com/JoryHogeveen/view-admin-as/wiki/Role-Manager

    Cheers, Jory

    • This reply was modified 5 months, 2 weeks ago by Jory Hogeveen.
    Thread Starter lwatkins

    (@lwatkins)

    These users do have the view-admin-as and edit-users capabilities. I have checked multiple times.

    We do not have a multi-site install so we do not have the manage-network-users capability available for me to give to them.

    But they still can’t find the users that do not have capabilities that are less than them.

    I don’t want them to view and edit other admins.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @lwatkins

    I’m sorry, I though you mentioned a super admin and therefore I assumed you had a multisite installation.

    In any case, I tested on a single installation locally and it still works as expected.

    I also see you mentioning view-admin-as and edit-users as capabilities. I assume you mean view_admin_as and edit_users (underscores)?

    And could you verify that the users they are searching for do not belong to multiple roles of which some might have one of these capabilities?

    Or maybe easier, could you let me know if the assumption below is correct?

    1. You are one of the two administrators
    2. The users you want to allow access to this plugin are editors and you’ve granted the editor role the capabilities: view_admin_as and edit_users
    3. The users these editors need to search for are lower roles (subscribers or contributors for example who do not have any user edit capabilities.)

    Correct?

    If this is the situation then I’m inclined to think this might be a plugin conflict.
    Please check if this still happens with only this plugin active on a default WP theme.
    You can use the troubleshooter plugin for this: https://wordpress.org/plugins/health-check/

    Cheers, Jory

    • This reply was modified 5 months, 2 weeks ago by Jory Hogeveen.
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.