I instalalled 2 server A and B bot with ZCS 4.0.4 as described in the Zimbra OS Multi-Server Install pdf, users are splitted between the two servers.
I have a zimlet that uses the getUsername() function, but if the a user assigne to server B login to his server, the function returns the correct value, if it login to a server A and then is redirect to the server B the function returns a null value.

Is this a bug ?
Is there another way to retrieve the username ?

Thank you