User names cannot be changed at runtime: they are unique and decided at login time exclusively. If you wish to alter the username of a specific client it can be done a login time as described in this article: http://smartfoxserver.com/blog/how-to-c ... stom-login