How do you have camera of player in rotate along with vehicle orient?

When passengers sit in a vehicle as a passenger (not as a driver) and the vehicle turns, their camera view remains fixed to the world axis unless the passenger manually turns it themselves. How do I have it such that the camera will turn along with the vehicle by itself, but still have the camera freely rotatable by the passenger?