I should have been clearer. From his point of view he had a moral obligation to his students. I actually don't think he did.
The school system should be following a combination of legal code and the generally accepted morals of the community they represent. Notification was provided to parents. Parents could opt out and there was no general movement by parents to prevent the survey. The school therefore didn't ask him to do anything which is "definitively immoral".
People including myself have to make judgements like this at different times during their career. I have worked for companies which have asked me to perform actions which I personally have found against my moral code but which aren't illegal and may not be considered immoral by society as a whole. Sometimes I have done them and other times I have not. It has depended on how large of a violation of my own moral code I though it was. Anytime I have refused I have fully expected and received negative reactions from my employer. To actively interfere with the goals or requests of your employer and not expect a negative reaction is just idiotic.
The school system should be following a combination of legal code and the generally accepted morals of the community they represent. Notification was provided to parents. Parents could opt out and there was no general movement by parents to prevent the survey. The school therefore didn't ask him to do anything which is "definitively immoral".
People including myself have to make judgements like this at different times during their career. I have worked for companies which have asked me to perform actions which I personally have found against my moral code but which aren't illegal and may not be considered immoral by society as a whole. Sometimes I have done them and other times I have not. It has depended on how large of a violation of my own moral code I though it was. Anytime I have refused I have fully expected and received negative reactions from my employer. To actively interfere with the goals or requests of your employer and not expect a negative reaction is just idiotic.