There are tangentially similar precedents already, such as the American FACTA law. It is obviously a quite different context, as it just relates to financial information, not all information - but it's a law from the US government, that demands foreign companies send information back to the US.
The wild thing is that foreign companies actually do it. To avoid annoying the US, a lot of other governments ensure that the data is reported.
https://en.wikipedia.org/wiki/Foreign_Account_Tax_Compliance...