Locked out after changing admin user to machine account

Many thanks Norm. This worked perfectly. I might be the only one stupid enough to do this, but can I suggest implementing a lock that prevents conversion of an admin user (or at least the sole admin user) to a machine account?

Thanks again. Having tidied that up, I now have an error in the Grafana plugin (“Could not read API response, make sure the URL you provided is correct.”), but if I can’t figure it out I’ll start another post.