Legitimate interest
One of the GDPR legal bases: data may be processed if this is necessary for a legitimate interest and the affected person's rights do not override it.
It requires weighing the interest of whoever processes the data against the person's rights and freedoms. It is not a general permission: the controller must be able to demonstrate that balancing (Article 5(2)), and the data subject may object to the processing (Article 21).
processing is necessary for the purposes of the legitimate interests pursued by the controller or by a third party, except where such interests are overridden by the interests or fundamental rights and freedoms of the data subject which require protection of personal data, in particular where the data subject is a child.
Source: Regulation (EU) 2016/679 (GDPR), Article 6(1), point (f)
