Prof Gray was appointed Director General Health and Social Care at the Scottish Government and Chief Executive of NHS Scotland in 2013, a role he held until late 2018. Prior to this he held a number of roles at the Scottish Government, including, Director General of Governance and Communities, Director General Environment and Director General Rural Affairs, Environment and Services. Until 2009, Prof Gray was the Scottish Government’s Director of Change and Corporate Services, with responsibility for senior staff development and deployment; human resources; information services; accommodation and estates services; corporate learning; employee engagement; and the Scottish Government’s business improvement and change programmes.