“Given the huge uproar about similar plans for medical records, you would have hoped HMRC would have learned that trying to sneak plans like this under the radar is not the way to build trust or develop good policy.”

A HMRC spokesman said: “HMRC would only share data where this would generate clear public benefits, and where there are robust safeguards in place.”