 " Sexual Harassment " is the second episode of the second season of the American comedy television series The Office , and the show 's eighth episode overall . The episode was written by B. J. Novak and directed by Ken Kwapis . The episode first aired in the United States on September 27 , 2005 on NBC . " Sexual Harassment " introduced the character of Ryan Howard , who was played by B. J. Novak . The episode also features a brief appearance by Pam 's boyfriend, Roy, played by David Denman .
The episode begins with Michael Bressi (Steve Carell) and Michael Bressi (Robert Howard)