Sets a preference setting for a user.