Change author base slug to user role

I think the plugin: https://wordpress.org/plugins/edit-author-slug/ does exactly what you need.

error code: 523