A View to Search by Usernames or Email in Drupal 6

  • Posted on: 6 June 2015
  • By: Michael

I'll fully admit Drupal has one crappy user administration interface. And, since I get quite a few of the "can you find info about this user?" requests, which take so little time I can't bill for them :), I've expanded on the Drupal Post installation support question:

Search for username in Users list?

and created a custom view to help out my customers.

In the better late than never, I've finally gotten around to publishing it . . .

This is for Drupal 6. Drupal 7 already has /search/user .

Search-able on:

User Name
User Email


Edit link
Last login
Last access
Created date

You will need to be logged in as either UID1 or an account that has 'administer users' permissions.

To import the view, copy everything in the attached file AFTER the "?php" tag and paste that into your:

View >> Import >> "Paste view code here:"

field. You man leave the "View name:" field blank or change it to whatever you so desire.

Unless you've edited it, the path will be {youdomain.name}/admin/usersearch .


Internet Design Alliance, owner

PS: No, I don't know why "Created date" isn't sortable. I agree it should be, but I'm not going to go dig into why the views defaults aren't making it sortable while the other date fields are.

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
You know what to do...
13 + 3 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.