In every request,we can access user and its details.
So all the link details user accessed and user id with date and time must be saved in a file.
Or in MongoDB document.
Then if there's a issue , we can check who invoked which function at what time.