
yc954 (yc954) asked a question.
User name update
We have a scenario where a user is created in Okta with their mobile number as the username. Later, the user changes their mobile number and we need to update the username in Okta to reflect the new mobile number.

@yc954 (yc954) - So assuming the user is "Okta Sourced" && you mean they "update their Okta profile" with a new attribute and you then need to change their login to an alternate value you should be able to accomplish this. This type of scenario is pretty common and there is a built-in "Event" card in Okta - User Okta Profile Updated which will create an event hook for the event (user.account.update_profile) with the Event Hook payload destination being that Workflow.
So each time a users profile is updated in your environment a payload will be delivered. There is a changedAttributes field than can then be evaluated for a change to a specific attribute and if "false" stop processing. Example: (attributetoEvaluate is a placeholder. I am assuming you mean the default attribute "mobilePhone" based on your question. If so, it would be used instead of the placeholder)
So assuming one of the changedAttributes were "attributeToEvaluate" the flow would continue processing. You could then obtain the User's ID from the User Okta Profile Updated and use it to "read" the user's current attribute value. Then construct your new login. And finally, update the user login with this new value.