add a new API for update users

add a new API for update users