Is there a law that regulates tasks and authority of the AIVD other than the Wiv 2017?

Yes. The Wvo (Wet veiligheidsonderzoeken, Security Screening Act) regulates screening of candidates who have applied for positions involving confidentiality.