Return to list of Users–user’s email is not changed
Expected behavior
We had hired a few contractors and given them access to an “External” team using their gmail accounts. Now that we hired them as full employees, we want to change their email to use our company’s domain so they can have access to the internal team and all relevant channels, but neither they nor we can seem to change their email addresses.
Observed behavior
They’ve had to create new profiles with new handles, which is confusing to people who’ve been communicating with them already.
On top of the question asked by Amy, may I know if the users that you were trying to change the email addresses were created locally via email & password or rather from external directories such as AD / LDAP or SSO login such as Okta / OneLogin?
I have attempted to reproduce this on Mattermost 5.19.1 and was able to confirm that the local user emails are editable through System Console > User Management > Users > Update Email.
I can also confirm that the email is changed properly from the Users table in the database.
Can you please run the following command on the database so we can get a better picture of a sample user that is affected by this issue?
SELECT Id, Username, AuthData, AuthService, Email, EmailVerified FROM Users WHERE Email = "<email>";
I’ve just encountered this problem, or at least observed the same behaviour, where the email address remains as it was after altering it and clicking save in the System Console.
In my case a user had registered with an invalid email address (TLD was missing). In the end I manually altered the email address directly in the database, after which they were able to log in.
I suspect the fact that the address was invalid somehow prevented me from changing it via the System Console… Hopefully this helps to track down what appears to be a bug.