C# FileWatcher Get UserName that dropped a file

46 Views Asked by At

I realize that I may have to use Auditing to get the answer here but short of that I was wondering if anyone knew of a way to get the name of the User that dropped the file into the watched folder.

Business reason for asking: We have automated systems that generate various types of support documents. These often have only the "creator" property set and it is generally either "Administrator" or the Service Account. At some point after generation, a user has to manually decide that the file is good enough to be forwarded on and it is dropped into a folder on the network. Being able to capture that name in a passive way (like through a Filesystem Watcher) could be helpful in our pursuit of process improvement.

Is there a method to capture who is dropping a file into a watched folder?
Note: our environment is full stack Microsoft and 64-bit.

0

There are 0 best solutions below