I think in most countries in Europe the national id number is enough to link taxes to specific people (identity card numbers are to most effects public), even though for official international documents you need to provide the accepted Tax Identification Number (TIN) which you can find in
https://www.oecd.org/tax/automatic-exchange/crs-implementati..., but more as a convenience than anything else.
That keeping secret your SSN is a thing is something that mostly affects the US.