Updates references to user ref to user id.