at our company were using our ASP.NET application to create users as well as for the application and Zimbra as well by calling a remote PHP script which implements Zimbra PHP API to create accounts, which works perfectly.
But the problems start when the new users miss-spelled and need to be corrected, and because we're using email@example.com mail address format we also need to change the email and uid of the user on zimbra, which fails.
I have also tried changing those two things localy with zimbra user using command:
which produces the following error:
zmprov ma firstname.lastname@example.org uid changed.user mail email@example.com
Same error if I drop out the uid and want to change only the mail address only that it says mail is immutable.
ERROR: service.INVALID_REQUEST (invalid request: uid is immutable)
I have tried locking down the account for maintainance before changing and still doesn't work. So now I'm thinking, maybe I am doing this wrong.
So now the question arises, how to change the address and login of the account?