This is different from the utilitarian view because the utilitarian view does not care what our motives are or how our actions toward another person affect them individually. Instead, utilitarians believe that the good of the one person can be sacrificed for the good of the many. The only thing that utilitarians demand is that the overall good should be increased by our actions.
Therefore, a utilitarian would say that it is acceptable to violate a person's autonomy and to treat them like a means rather than an end. We may do so as long as our action would increase the overall amount of happiness for our society as a whole.