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?
https://www.drupal.org/node/744628

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

Shows:

Name
Edit link
Uid
Active
Roles
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:"
/admin/build/views/import

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 .

Best,

Michael
Internet Design Alliance, owner
http://inet-design.com

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.
CAPTCHA
You know what to do...
7 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.