Hi,
I am creating an export operation, I have an entity 01, with a list of users and an entity 02 with email addresses:

I need to convert this to an export file with the next structure:

I would to know if there a step to help me grouping the data for this purpose.
Thanks in advance,
Alejandro