solving #3099 (implement "Switch user" functionality)