Views Exposed Filter Search / List Users

Learn how to use Views to make User Search / List . Learn how to list all users in your Drupal Site also learn how to search particular user or list of users .


Note : Views Module does not come with core Drupal Functionality. You need to download ( and install it seperately.

Once Installation id Done Get started:

Step 1 : Click on Structure.

Step 2 : Now click on Views.

Step 3 : Now click on Add New View.

Step 4 : You can Give the Name 'Search Users' to The View
Below that you can select on Show 'Users'

Click on Checkbox 'Create a Page'
You can Give the Page title as 'Search Users'
Define path to this 'search_users'
Note: Dont Keep path as 'search' as default search for Nodes in Drupal has 'search/node' path and 'search/user' for User Search already which is by default available for Drupal Super User.
Besides also keep items to display as '10' and 'user pager'

Step 5 : Click on 'Continue & Edit'

Step 6 : Click on 'Add Filter Criteria'

Step 7 : Now Select 'User Name(raw)(User or author)'

Step 8 : Now Make sure you click on 'Expose Filter '(this will show the field to visitors) and
select operator as 'Contains' (This will match the string to title)

Step 9 : Click on Apply

Step 10 : Click on Save

Step 11 : Now type ../search_nodes in Browser URL

Step 12 : And finally test the Search Functionality by typing the user name

Note : If you test this without logging in as Super admin You might get "Access Denied" To Show it to Anonymous Users

Step 13 : Go Under View Page > Page settings > Role

Step 14 : Click on Role hit Apply

Step 15 : Click on Multiple Roles

Step 16 : Select All the check boxes respective to their Roles which Role you want to Show this page.

Step 16 : For Other User Roles you will get the page somewhat like that.(Users Might be non-click-able as (for that particular Role there might be no access to view User (Can be changes People > Permissions > View user profiles can be selected associated to roles you wish to show the User Profile)))


Demo of something you made

If You Think This Post has helped you buy us a Coffee :)

Make Donation

  • Other: $

Donate now