How to show users with the same term? I added a term reference field (field_department_term_ref) to user entity (/admin/config/people/accounts/fields), then I need use Views to list all the users with the same term as current logged in user (including current logged in user himself). I referenced this post, But unfortunately there are 2 differences:


Contextual filter "User: field_department_term_ref" can not get the right default value.
If I don't select the "Exclude" checkbox in the MORE section, it will only show current user himself; if not, it will show others users but no current user.
By default it provides a way to pass the term from current node and not from user. But there are two different ways to do this : 


By Custom Code : Get the term id using $user variable and pass term id to the views_embed_view function which is used to render the views.
Create two views : 


First view : User list with contextual filter term field that is added in account settings. 
Second View : User view with contextual filter uid that filters the
current logged in user. 

-- In field section add term id field and
exclude it from there. 

-- Next field would be the first view  which
prints the list of users by taking the term argument.

-- Pass the token
of tid in argument section of view field.



To add a views as a field you need a module : Views Field View.