The way I have seen the role these days is Agile coach, who teaches the principles of lean and agile as needed and helps teams diagnose problems they are too close to to solve, which is a valuable service. There’s usually one per few hundred people at a company, rather than one per five or so for the scrum master.