How to assign user to a department?