How to make user as an exposed filter option in filter criteria of a normal view? In a view, I want list of users of specific role to be exposed filter option, which will list all users of that role.

Example: What I want is in view type like order or customer of ubercart(example), I want user to be filter criteria with exposed filter option of specific role(buyer or seller). If i select one user that particular user order should be listed.

Is that possible?? If so then how?

Thanks in advance.
You may install this module Total Control module. After installing this module goto this link yourdomain.com/admin/structure/views/view/control_users/edit

This view provides the functionality you want. 

To see it working you visit the page through this link yourdomain.com/admin/dashboard/users

EDIT I have export the view and pasted it below in-case you just need a reference and don't want to install that module. 

$view = new view();
$view-&gt;name = 'control_users';
$view-&gt;description = 'Total Control over user accounts: Contains a panel pane and a page to control user accounts.';
$view-&gt;tag = 'total_control';
$view-&gt;base_table = 'users';
$view-&gt;human_name = '';
$view-&gt;core = 0;
$view-&gt;api_version = '3.0';
$view-&gt;disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view-&gt;new_display('default', 'Defaults', 'default');
$handler-&gt;display-&gt;display_options['title'] = 'User Accounts';
$handler-&gt;display-&gt;display_options['use_more_always'] = FALSE;
$handler-&gt;display-&gt;display_options['access']['type'] = 'perm';
$handler-&gt;display-&gt;display_options['access']['perm'] = 'have total control';
$handler-&gt;display-&gt;display_options['cache']['type'] = 'none';
$handler-&gt;display-&gt;display_options['query']['type'] = 'views_query';
$handler-&gt;display-&gt;display_options['query']['options']['query_comment'] = FALSE;
$handler-&gt;display-&gt;display_options['exposed_form']['type'] = 'basic';
$handler-&gt;display-&gt;display_options['exposed_form']['options']['submit_button'] = 'Filter';
$handler-&gt;display-&gt;display_options['pager']['type'] = 'full';
$handler-&gt;display-&gt;display_options['pager']['options']['items_per_page'] = '35';
$handler-&gt;display-&gt;display_options['pager']['options']['offset'] = '0';
$handler-&gt;display-&gt;display_options['pager']['options']['id'] = '0';
$handler-&gt;display-&gt;display_options['style_plugin'] = 'table';
$handler-&gt;display-&gt;display_options['style_options']['columns'] = array(
  'name' =&gt; 'name',
  'mail' =&gt; 'mail',
  'rid' =&gt; 'rid',
  'status' =&gt; 'status',
  'created' =&gt; 'created',
  'login' =&gt; 'login',
  'delete_node' =&gt; 'delete_node',
  'edit_node' =&gt; 'edit_node',
);
$handler-&gt;display-&gt;display_options['style_options']['default'] = '-1';
$handler-&gt;display-&gt;display_options['style_options']['info'] = array(
  'name' =&gt; array(
    'sortable' =&gt; 1,
    'default_sort_order' =&gt; 'asc',
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
  'mail' =&gt; array(
    'sortable' =&gt; 1,
    'default_sort_order' =&gt; 'asc',
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
  'rid' =&gt; array(
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
  'status' =&gt; array(
    'sortable' =&gt; 1,
    'default_sort_order' =&gt; 'asc',
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
  'created' =&gt; array(
    'sortable' =&gt; 1,
    'default_sort_order' =&gt; 'asc',
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
  'login' =&gt; array(
    'sortable' =&gt; 1,
    'default_sort_order' =&gt; 'asc',
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
  'delete_node' =&gt; array(
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
  'edit_node' =&gt; array(
    'align' =&gt; '',
    'separator' =&gt; '',
    'empty_column' =&gt; 0,
  ),
);
/* Field: Bulk operations: User */
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['table'] = 'users';
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['label'] = '';
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['element_label_colon'] = FALSE;
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['vbo_settings']['display_type'] = '0';
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['vbo_settings']['enable_select_all_pages'] = 1;
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['vbo_settings']['force_single'] = 0;
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['vbo_settings']['entity_load_capacity'] = '10';
$handler-&gt;display-&gt;display_options['fields']['views_bulk_operations']['vbo_operations'] = array(
  'action::user_block_user_action' =&gt; array(
    'selected' =&gt; 1,
    'postpone_processing' =&gt; 0,
    'skip_confirmation' =&gt; 0,
    'override_label' =&gt; 0,
    'label' =&gt; '',
  ),
  'action::views_bulk_operations_delete_item' =&gt; array(
    'selected' =&gt; 0,
    'postpone_processing' =&gt; 0,
    'skip_confirmation' =&gt; 0,
    'override_label' =&gt; 0,
    'label' =&gt; '',
  ),
  'action::views_bulk_operations_script_action' =&gt; array(
    'selected' =&gt; 0,
    'postpone_processing' =&gt; 0,
    'skip_confirmation' =&gt; 0,
    'override_label' =&gt; 0,
    'label' =&gt; '',
  ),
  'action::views_bulk_operations_modify_action' =&gt; array(
    'selected' =&gt; 0,
    'postpone_processing' =&gt; 0,
    'skip_confirmation' =&gt; 0,
    'override_label' =&gt; 0,
    'label' =&gt; '',
    'settings' =&gt; array(
      'show_all_tokens' =&gt; 1,
      'display_values' =&gt; array(
        '_all_' =&gt; '_all_',
      ),
    ),
  ),
  'action::views_bulk_operations_user_roles_action' =&gt; array(
    'selected' =&gt; 0,
    'postpone_processing' =&gt; 0,
    'skip_confirmation' =&gt; 0,
    'override_label' =&gt; 0,
    'label' =&gt; '',
  ),
  'action::views_bulk_operations_argument_selector_action' =&gt; array(
    'selected' =&gt; 0,
    'skip_confirmation' =&gt; 0,
    'override_label' =&gt; 0,
    'label' =&gt; '',
    'settings' =&gt; array(
      'url' =&gt; '',
    ),
  ),
  'action::system_send_email_action' =&gt; array(
    'selected' =&gt; 1,
    'postpone_processing' =&gt; 0,
    'skip_confirmation' =&gt; 1,
    'override_label' =&gt; 0,
    'label' =&gt; '',
  ),
);
/* Field: User: Name */
$handler-&gt;display-&gt;display_options['fields']['name']['id'] = 'name';
$handler-&gt;display-&gt;display_options['fields']['name']['table'] = 'users';
$handler-&gt;display-&gt;display_options['fields']['name']['field'] = 'name';
/* Field: User: E-mail */
$handler-&gt;display-&gt;display_options['fields']['mail']['id'] = 'mail';
$handler-&gt;display-&gt;display_options['fields']['mail']['table'] = 'users';
$handler-&gt;display-&gt;display_options['fields']['mail']['field'] = 'mail';
/* Field: User: Roles */
$handler-&gt;display-&gt;display_options['fields']['rid']['id'] = 'rid';
$handler-&gt;display-&gt;display_options['fields']['rid']['table'] = 'users_roles';
$handler-&gt;display-&gt;display_options['fields']['rid']['field'] = 'rid';
/* Field: User: Created date */
$handler-&gt;display-&gt;display_options['fields']['created']['id'] = 'created';
$handler-&gt;display-&gt;display_options['fields']['created']['table'] = 'users';
$handler-&gt;display-&gt;display_options['fields']['created']['field'] = 'created';
$handler-&gt;display-&gt;display_options['fields']['created']['label'] = 'Created';
$handler-&gt;display-&gt;display_options['fields']['created']['date_format'] = 'custom';
$handler-&gt;display-&gt;display_options['fields']['created']['custom_date_format'] = 'm/d/Y';
/* Field: User: Last login */
$handler-&gt;display-&gt;display_options['fields']['login']['id'] = 'login';
$handler-&gt;display-&gt;display_options['fields']['login']['table'] = 'users';
$handler-&gt;display-&gt;display_options['fields']['login']['field'] = 'login';
$handler-&gt;display-&gt;display_options['fields']['login']['date_format'] = 'custom';
$handler-&gt;display-&gt;display_options['fields']['login']['custom_date_format'] = 'j/d g:ia';
/* Field: User: Edit link */
$handler-&gt;display-&gt;display_options['fields']['edit_node']['id'] = 'edit_node';
$handler-&gt;display-&gt;display_options['fields']['edit_node']['table'] = 'users';
$handler-&gt;display-&gt;display_options['fields']['edit_node']['field'] = 'edit_node';
$handler-&gt;display-&gt;display_options['fields']['edit_node']['label'] = 'Edit';
$handler-&gt;display-&gt;display_options['fields']['edit_node']['text'] = 'edit';
/* Sort criterion: User: Created date */
$handler-&gt;display-&gt;display_options['sorts']['created']['id'] = 'created';
$handler-&gt;display-&gt;display_options['sorts']['created']['table'] = 'users';
$handler-&gt;display-&gt;display_options['sorts']['created']['field'] = 'created';
$handler-&gt;display-&gt;display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: User: Name */
$handler-&gt;display-&gt;display_options['filters']['uid']['id'] = 'uid';
$handler-&gt;display-&gt;display_options['filters']['uid']['table'] = 'users';
$handler-&gt;display-&gt;display_options['filters']['uid']['field'] = 'uid';
$handler-&gt;display-&gt;display_options['filters']['uid']['operator'] = 'not in';
$handler-&gt;display-&gt;display_options['filters']['uid']['value'] = array(
  0 =&gt; 0,
);
$handler-&gt;display-&gt;display_options['filters']['uid']['expose']['label'] = 'User: Name';
$handler-&gt;display-&gt;display_options['filters']['uid']['expose']['operator'] = 'uid_op';
$handler-&gt;display-&gt;display_options['filters']['uid']['expose']['identifier'] = 'uid';
/* Filter criterion: User: Roles */
$handler-&gt;display-&gt;display_options['filters']['rid']['id'] = 'rid';
$handler-&gt;display-&gt;display_options['filters']['rid']['table'] = 'users_roles';
$handler-&gt;display-&gt;display_options['filters']['rid']['field'] = 'rid';
$handler-&gt;display-&gt;display_options['filters']['rid']['exposed'] = TRUE;
$handler-&gt;display-&gt;display_options['filters']['rid']['expose']['operator_id'] = 'rid_op';
$handler-&gt;display-&gt;display_options['filters']['rid']['expose']['label'] = 'Roles';
$handler-&gt;display-&gt;display_options['filters']['rid']['expose']['operator'] = 'rid_op';
$handler-&gt;display-&gt;display_options['filters']['rid']['expose']['identifier'] = 'rid';
/* Filter criterion: User: Name */
$handler-&gt;display-&gt;display_options['filters']['uid_1']['id'] = 'uid_1';
$handler-&gt;display-&gt;display_options['filters']['uid_1']['table'] = 'users';
$handler-&gt;display-&gt;display_options['filters']['uid_1']['field'] = 'uid';
$handler-&gt;display-&gt;display_options['filters']['uid_1']['value'] = '';
$handler-&gt;display-&gt;display_options['filters']['uid_1']['exposed'] = TRUE;
$handler-&gt;display-&gt;display_options['filters']['uid_1']['expose']['operator_id'] = 'uid_1_op';
$handler-&gt;display-&gt;display_options['filters']['uid_1']['expose']['label'] = 'Username';
$handler-&gt;display-&gt;display_options['filters']['uid_1']['expose']['operator'] = 'uid_1_op';
$handler-&gt;display-&gt;display_options['filters']['uid_1']['expose']['identifier'] = 'name';
/* Filter criterion: User: E-mail */
$handler-&gt;display-&gt;display_options['filters']['mail']['id'] = 'mail';
$handler-&gt;display-&gt;display_options['filters']['mail']['table'] = 'users';
$handler-&gt;display-&gt;display_options['filters']['mail']['field'] = 'mail';
$handler-&gt;display-&gt;display_options['filters']['mail']['operator'] = 'contains';
$handler-&gt;display-&gt;display_options['filters']['mail']['exposed'] = TRUE;
$handler-&gt;display-&gt;display_options['filters']['mail']['expose']['operator_id'] = 'mail_op';
$handler-&gt;display-&gt;display_options['filters']['mail']['expose']['label'] = 'E-mail';
$handler-&gt;display-&gt;display_options['filters']['mail']['expose']['operator'] = 'mail_op';
$handler-&gt;display-&gt;display_options['filters']['mail']['expose']['identifier'] = 'mail';

/* Display: User Admin */
$handler = $view-&gt;new_display('page', 'User Admin', 'page_1');
$handler-&gt;display-&gt;display_options['defaults']['hide_admin_links'] = FALSE;
$handler-&gt;display-&gt;display_options['path'] = 'admin/dashboard/users';
$handler-&gt;display-&gt;display_options['menu']['type'] = 'tab';
$handler-&gt;display-&gt;display_options['menu']['title'] = 'User Accounts';
$handler-&gt;display-&gt;display_options['menu']['weight'] = '-14';