Filter User in Views based on taxonomy contextual filter? I have some users with taxonomy term reference fields.
Lets say users can be associated with regions.

When i view  the user page i want to see all other users from the same region as the user i am looking at.

I created a views block on users with a contextual filter based on that taxonomy, but i cant get it to work ? Do i need some relationship ??

My Settings for the contextual filter:


filter on User: Region (field_region) / that is the taxonomy term reference field in the user
provide default value -> user
ID from URL
specify validatiion criteria -> taxonomy term -> vocabularies "Region" , filter value type -> term name converted to term id
You are on the right track, but the contextual filter has to be changed. The user ID is not the region. If you wish to filter on the Region, you must first determine the Region for the user page you are on. 

Switch the Provide default value to PHP Code. Then enter something like:

$user = menu_get_object('user');
return $user-&gt;field_region['und'][0]['taxonomy_term'];


This will load the term object for the region of the current user, and the filter can then limit the user list based on that term.

To eliminate the current user from this list, set upa second contextual filter in User:UID and set default value to Use ID from URL. Then open up the 'More' settings and check exclude.