§ 23 NDSG
Scope of application
(1)1This Part shall apply to the public bodies within the meaning of § 1(1) sentence 1 number 1(a) and (b) and § 1(1) sentence 2 which are competent for the processing of personal data for the prevention, investigation, detection, prosecution or punishment of criminal offences, including the protection against and the prevention of threats to public security, insofar as they process personal data for the purpose of performing those tasks. 2Sentence 1 shall also apply to those public bodies which are competent for the enforcement and execution of sentences, of measures within the meaning of § 11(1) number 8 StGB, of educational measures or disciplinary measures within the meaning of the Juvenile Courts Act, and of fines.
(2)Paragraph 1 shall also apply to those public bodies which prosecute and punish administrative offences and enforce sanctions.
(3)1Other provisions of federal or Land law which specifically regulate the prevention, investigation, detection, prosecution or punishment of criminal offences, including the protection against and the prevention of threats to public security, for the bodies referred to in paragraph 1, shall take precedence over the provisions of this Part. 2Insofar as those special provisions do not contain exhaustive regulations, the provisions of this Part shall apply supplementarily. 3Sentences 1 and 2 shall also apply to the public bodies referred to in paragraph 2.