Get all users attached to a taxonomy

You can use WordPress function get_objects_in_term

$users = get_objects_in_term(2, 'user_category'); // 2 being term id

This return array of users that have this same term id.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)