Prevent certain user roles from showing up in results I have a special role (role A) that I have to have set with view user profiles permission. I then have another role (role B) as well as the administrator role that I don't want for that roles users to show up in a views exposed filter and/or for the users with role A to be able to view their profiles. Is there:

a. a way to stop users from certain roles showing up in the exposed filters.

b. a generic way (or module) that stops certain roles being able to view other certain roles.

UPDATE:

I solved b with this module which works well:

http://drupal.org/project/view_profiles_perms

So just need to come up with a way of preventing certain roles from showing in a views exposed filter
For A.

Set up another filter in your view for "User: Roles". Choose the Operator "Is none of" and then, choose in the options the role you dont want seen. You can use the roles filter after the exposed one.

Attached is a pic of the user:roles filter section. The options are cutoff to the right (taken from a working site..want to leave the role names private)



You can also expose the role filter and, limit it to the selections you choose in the options pane.