He'll play Harry Mudd, who was first introduced in the initial 'Star Trek' TV series.

Star Trek: Discovery is adding another member to its sprawling cast.

The Office grad Rainn Wilson has boarded the CBS All Access drama, The Hollywood Reporter has learned.

Wilson will take on the role of Harry Mudd, the charismatic conman and intergalactic criminal first introduced in the original Star Trek TV series. It's unclear just how many episodes the Emmy-nominated actor will appear in.

The series revolves around the USS Discovery and introduces new characters seeking new worlds and civilizations while exploring the dramatic contemporary themes that have been a signature of the franchise since its inception in 1966.

Jason Isaacs stars as Lorca, the captain of the Starship Discovery. The Walking Dead's Sonequa Martin-Green is Rainsford, a lieutenant commander; Doug Jones plays science officer Saru; Anthony Rapp is set as fellow science officer Stamets; James Frain plays Sarek, a Vulcan astrophysicist and Spock's father; Terry Serpico takes on the part of Starfleet admiral Anderson; Maulik Pancholy is chief medical officer Nambue; and Sam Vartholomeos is junior Starfleet officer Connor. Set to recur are Michelle Yeoh as Georgiu, captain of another ship called the Shenzhou; Shazad Latif as Kol, the Klingon commanding officer; Chris Obi as Klingon leader T'Kuvma; and Mary Chieffo as L'Rell, a Klingon commander.

Wilson's credits include The Office and features Super and Meg. He's repped by UTA.