He does not need consent because of Article 6 (e), which says that "to perform a task in the public interest or in official authority" is a lawful purpose.
Also people always forget that the scope of the GDPR is limited. The following three areas are generally exempt:
- Personal or household activities
- Law enforcement
- National Security