get_users(array( 'meta_key' => 'parent_id', 'meta_value' => '42', 'fields'=>'ids' //if you want only id of the user ))