Data protection at school: what the law says and how to comply
The data a school can request, photos of students on social media, the data protection officer and the duty of confidentiality.
In a nutshell
A school can collect the student data needed for its educational function. It cannot use it for other purposes without express consent. To publish photos on social media it needs the consent of the student or their legal representatives. In addition, every school must appoint a data protection officer.
What data
What student data can a school process? What is needed to educate
The LOE allows schools to collect the student data needed for their educational function.
- What data. What is needed to educate and guide. (LOE, 23rd additional provision, section 1)“Schools may collect the personal data of their students that is necessary for the exercise of their educational function.”
- Only for education. It cannot be used for other purposes without express consent. (LOE, 23rd additional provision, section 2)“In any case, the information referred to in this section shall be that which is strictly necessary for the teaching and guidance function, and may not be processed for purposes other than education without express consent.”
- Security and confidentiality. Staff who access that data are bound by a duty of confidentiality. (LOE, 23rd additional provision, section 3)“Technical and organisational rules that guarantee its security and confidentiality shall be applied to the processing of student data.”
Consent
Is consent needed to publish photos of students? On social media, yes
Schools must protect the superior interest of the minor when publishing their data online. On social media, they need the consent of the minor or their legal representatives.
- Photos on social media. With the consent of the minor or their legal representatives. (LOPDGDD, art. 92)“Where such publication or dissemination is to take place through social network services or equivalent services, they must have the consent of the minor or their legal representatives, in accordance with article 7 of this organic law.”
- Who consents. Article 7 sets the age from which students give consent themselves. Below it, their parents or guardians consent. (LOPDGDD, art. 7)“[…] based on consent, shall only be lawful if that of the holder of parental authority or guardianship is given, to the extent determined by the holders of parental authority or guardianship.”
Officer
Does a school need a data protection officer? Yes, all schools
The LOPDGDD requires schools to appoint one, in addition to the cases in the General Data Protection Regulation.
- Mandatory appointment. In all schools, at any level of education. (LOPDGDD, art. 34.1.b)“Schools offering education at any of the levels established in the legislation governing the right to education, as well as public and private universities.”
On the platform
How school management software helps you comply
Everyone sees what is theirs
In Nuela, everyone sees what is relevant to them. Families’ consents are recorded.
- Consents. Use of images, school trips, publication on the website and social media, sharing with the AMPA (parents’ association) and emergency medical treatment. Families grant and withdraw them from their app, and withdrawn consents stop applying immediately.
- Permissions. By tool and by action, with two-step verification that can be required by role.
- Audit. A log of who creates and modifies each piece of data and of access to sensitive modules.
- Enhanced confidentiality. In guidance and in school coexistence, limited to a closed circle.
- Kabio. Nuela's artificial intelligence answers only with the data that the person asking is allowed to see.
With Nuela
See what each role at your school sees and how a family signs its consents, in a demo.
Legislation cited
- Regulation (EU) 2016/679, General Data Protection Regulation OJEU of 4 May 2016
- Organic Law 3/2018 of 5 December on the Protection of Personal Data and the guarantee of digital rights BOE of 6 December 2018
- Organic Law 2/2006 of 3 May on Education BOE of 4 May 2006
Consolidated texts consulted on boe.es on 26 November 2026. The quotations are an unofficial English translation of the consolidated Spanish text.
The autonomous communities implement part of these laws. Check each case against your own community’s rules.
In the product
Students · Communication · Guidance · Families' app
Related guides
Wellbeing coordinator and LOPIVI · Online enrolment · What is a school ERP
Questions
Data protection at school: questions
Can a school ask for students' personal data?
Yes, the data needed for its educational function. It cannot use it for other purposes without express consent (LOE, 23rd additional provision).
Does a school need permission to publish photos of students?
To publish them on social media or equivalent services, yes. It needs the consent of the minor or their legal representatives (LOPDGDD, article 92).
Who gives consent, the student or their parents?
It depends on the student’s age, which is set by article 7 of the LOPDGDD. Below that age, consent is given by those holding parental authority or guardianship.
Does a school have to have a data protection officer?
Yes. The LOPDGDD requires schools at any level of education to appoint one (article 34.1.b).
How does Nuela record families' consents?
The family grants or withdraws each consent from its app: images, trips, website and social media, sharing with the AMPA or emergency medical treatment. Withdrawn consents stop applying immediately.
Running your school is finally simple
Half an hour, your school in front of you and your own figures.

