Download & Extend

Add autocomplete widget to switch to a certain user

Project:Administration menu
Version:7.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

With administration menu and devel installed I get the great switch user menu. I plan to have a site with thousands of users. Can I filter which users show up in that menu?

Comments

#1

Project:Devel» Administration menu
Version:6.x-1.9» 6.x-3.x-dev
Component:devel» Code

you'd have to ask admin_menu. we do not expose any usernames except in a block which is not used by admin menu AFAIK

#2

Title:Devel Switch user and admin menu» Add autocomplete widget to switch to a certain user
Category:support request» feature request

admin_menu uses the same user list that Devel uses for its block. Those users are ordered by whether a user is able to switch, followed by any other users.

However, I always wanted to expand this integration by exposing an autocomplete widget (the first real widget) that allows you to search and switch to a certain user.

Hence, better title.

#3

What controls if a user "is able to switch"? Don't see it as a permissions.

#4

Ahh, its a devel permissions, but doesn't that permission control who can switch users, not who shows up in the list?

#5

Users in the switch user list are ordered by that permission first, yes. As of now, I don't think you can affect who shows up in that list. Anyway, an autocomplete widget is the only solution for your "thousands of users".

#6

Ok, that would be a great feature.

#7

Version:6.x-3.x-dev» 7.x-3.x-dev