The actor told Zap2it that his character Dwight Schrute will temporarily be appointed boss in an upcoming episode.
"Dwight gets to be in charge for one episode before the end of this season," he confirmed.
Following Steve Carell's departure as Michael Scott, the eccentric Deangelo Vickers (Will Ferrell) took over as office boss. However, a number of stars, including Jim Carrey, Catherine Tate, Will Arnett and James Spader will appear in the NBC comedy's season finale as potential replacements for Vickers.
"It was amazing working with James Spader," said Wilson. "He's someone who has been a mentor of mine."
The comedian previously claimed that The Office is "taking a big hit" following Carell's exit and admitted that he is "ready, willing and able to move on" if the show comes to an end.
The Office season finale will air on May 19 on NBC.