User service username change

I have openfire with user service plugin that i use to update/add/delete users.

But how do i handle the case where someones username has changed?

I push user info from a database to the userservice and sometimes the username can be changed.

The existing user in openfire then has to be updated to this new loginname.

Can the userservice do this or should i in this case run sql myself?