As I understand, you don’t want to switch the Userrole, but you want to switch a user (with a different role)
Thus replacing the demo user switcher by a page you create yourself. Right?
If so;
Since you just want to be able to assign user roles, you can do the following:
Using these you can easily select and change roles for individual users.