The order of the court came in a petition filed by a student of Amity University who was harassed for seeking change of her name in the college records.