§ 31 NDSG
Automated retrieval procedure
(1)The establishment and use of an automated retrieval procedure or a joint automated file in or from which several data processing public bodies process personal data shall be lawful subject to the conditions referred to in § 7.