Change user name via api call

Hi
Is there a rest api call for me to use to change the username of a user?
Thank you

Hi @PETER74,

You can use the Update User API to update the user’s profile - https://developer.okta.com/docs/api/resources/users#update-user

The username of a user is the profile.login property of the profile object - https://developer.okta.com/docs/api/resources/users#profile-object

You can pass the updated profile object to Update user API and it should work.

1 Like

got it working ty tho vijet

1 Like