Has that changed recently? (I haven't lived in the Netherlands for 10 years). AFAIK it is perfectly legal to do that if you believe you need it for security.
https://blog.iusmentis.com/2019/12/18/voor-de-laatste-keer-d...
https://blog.iusmentis.com/2019/12/18/voor-de-laatste-keer-d...