
g28u7 (g28u7) asked a question.
When a user changes their username in our system, we want to verify that this username (email) is valid for the current user. Is there a way through Okta to enqueue an update to the username pending verification through an email sent to the new address?

Hi Brian,
When the user changes the Email address he will be asked to confirm it by clicking the "Confirm Email Change" button in the Email that he receives from Okta on the new address. Also users can only change First Name, Last Name, Primary email, Secondary email and Mobile Phone the username cannot be changed by the End User.
The email change will not take place until the user has successfully verified the new address.
But what API triggering this email?
Having same issue, how do we accomplish this from the API?
For our solution we are going to use Email factor (extra verification logic)
https://developer.okta.com/docs/reference/api/factors/#enroll-okta-email-factor