In 2018, Barnett was cast in the main role of Alan Zaveri on the Netflix comedy series Russian Doll.[13] In the same year, Barnett was cast in the main role of Ben Marshall on the Netflix miniseries, Tales of the City.[14]