work progress make sure we cater for the case where both department and user is specified