yes,@nitinjl, I just overrode the download.js file and from sucesshandler of downloadasset servlet call a just gave call to my custom servlet and got userid by using resourceresolver.getUserId method & stored it in the particular asset's metadata node.