Margus Viher has worked at the Estonian Patent Office since 2000. Since 2005 he has worked as Deputy Director General, and Director General in 2015. From 1998 until 1999 he was the Deputy Head of Foreign Literature Department in the National Library of Estonia. From 1995 until 1998 he was the head of the official publications and international organisations division of the Foreign Exchange Department of the Estonian National Library. In 1996 he graduated Tallinn University in the field of Information Sciences. 2018–2019 he attended the Public Innovation Leadership Program (PILP), an intensive innovation program for Public Service Top Executives. 2021 he graduated from the Digital Transformation and Digital Leadership Program Digitipud/Digitops, an intensive digital transformation and change management program for Public Service Top Executives.