A yes-man

A person who tries to be liked by agreeing with everything someone says (especially his or her boss).

He is a yes-man who will do anything that his boss asks him to do.