Information concerning a student shall be furnished in compliance with a court order or a lawfully issued subpoena. The school district shall make a reasonable effort to notify the parent or legal guardian and the pupil in advance of compliance with a lawfully issued subpoena and, in the case of compliance with a court order, if lawfully possible within the requirements of the order.