Custom feature in ODK collect- download user specific data as CSV for single ODK form

I have a task to develop a small feature to download the CSV from ODK Central database (Postgres). Current flow downloads all data that is in media folder.
There will be one button called "Sync Data" in ODK collect, on click should prompt to enter user name and password. On success, download the CSV in media folder of specific form.
Server will create dynamic CSV based on the user access and then download same CSV on ODK collect of that particular user.

Is it possible? Please share timeline and cost.