I might encourage X to volunteer this data, to the extent that things like privacy can be safe-guarded etc. But force them to with the strong arm of the law? No thanks. There's no rights basis here. We could benefit from the results of the research, for sure, but I don't think anyone has a right to the data other than those who produced it (individual users with respects to their personal data + X itself).