add query user and department api