Filter users by roles I've a page showing the users. I wanted to categorized them, so I created roles and I'm grouping all the users according to their role. 
Now, I want to have a filter in the view to give the opportunity to the users to select the different types of users, example: employee, student, etc. The view will display the users according to the filter value. 

How can I accomplish this?
Have a look at the view People (User) view, which is located at relative path /admin/structure/views/view/user_admin_people.

This view has a User role exposed filter. You only need to implement the same filter in your view. 

You need to select the same filter in screenshot below.