Closed JulienTant closed 7 months ago
Thanks, @lieut-data! I applied the changes to the sync users method.
Applying those changes, and adding tests, made me realize that the tests for this method were not working because the MSUser was created with a Mail
field, which would cause the main loop to continue
without doing anything (first if of the loop). I added the Mail
field and fixed the mock calls as needed + added 2 tests for user creation and update.
/update-branch
Summary
Set EmailVerified to true when promoting a synthetic user.
Ticket Link
https://mattermost.atlassian.net/browse/MM-57209