Paul Lieberstein portrayed the poorly-treated Toby Flenderson for all nine seasons of The Office. Not only did Lieberstein star in the sitcom, but he also served as a writer and producer, and was even the showrunner from season 5 through 8. Toby was the Human Resources Representative of Dunder Mifflin's Scranton branch, but Michael Scott never made his job easy. Even after Michael left, Toby was down on his luck and that continued after he left the paper company.
Toby was mild-mannered and harmless but he was often the target of rude behavior, especially from Scranton's manager, Michael Scott. It didn't help that Toby had trouble with being assertive which caused his co-workers to easily brush off his thoughts or opinions. Toby also didn't have the best family life after his divorce and subsequent custody arrangements involving his daughter. He left Dunder Mifflin for a brief time to move to Costa Rica but a broken neck forced him back to his old job, much to the dismay of Michael. Toby remained the HR rep for much of the remaining seasons but he became sidetracked with the Scranton Strangler trial. There was even evidence that Toby was the serial killer, or possibly helped him in some capacity.
In The Office season 9, Andy started to treat Toby in the same fashion that Michael used to act towards him. Toby powered through the harsh criticism from the manager and was distracted by his new crush for Nellie. His feelings didn't turn into anything and his life took another turn when Dwight fired him in the series finale episode. It was revealed that Toby moved to New York following his termination and lived with six roommates. He attended the documentary panel in a surprise to his former co-workers, revealing that his life felt meaningless now that he wasn't being filmed. Toby attended Dwight and Angela's wedding where he got a chance to dance with Pam. He broke down claiming that everything has been going badly for him. Toby cheered up a little after his old co-workers invited him to their post-wedding get-together, proving that he was always considered a member of the group. The fate of Toby wasn't completely left up in the air, thanks to NBC.
As part of the network's "Where Are They Now" slideshow, it was revealed that Toby found his way back to human resources by taking an HR position at a TJ Maxx store. Surely it wasn't the kind of position that Toby hoped for after leaving Dunder Mifflin and wanting something different from the world of human resources. That said, it was also shared that Toby was continuing his dream of becoming a famous novelist. He originally moved to New York to pursue that goal. Even though it didn't work out, Toby kept writing his Chad Flenderman novels.
Toby was often on the wrong side of luck but it seems likely that he would have found happiness with something in life. He was never the most excitable person but he surely could have found a woman to settle down with. Dunder Mifflin could have been the wrong place to look for love as Toby proved multiple times. Leaving the workplace behind might have been the best option for Toby. The Office made it clear that he was highly undervalued while working at the paper company. At the same time, Toby never went out of his way to prove his worth.