DC2B-36: Manage user permissions to download data from the system

Use id from metadata instead of uuid to generate uuid field of resultsStore