In a pentesting context, this social engineering tactic is called "pretexting"