Directory Permission Watcher in c#
<p>I have created the program which is monitoring a directory (e.g. <code>\\server\share\folderXYZ</code>) for changed events (like created, deleted, renamed and permission changes). I also got the notification if anything changed but I can't get exact details what has changed.</p>

<p>For example I have changed the permission for above directory from folder properties (Properties -> Security -> Edit ->Add new user or group or change permission for user and groups). File system watcher give notification if something changed but I can't get other details like:</p>

<ol>
<li>For which user permission has changed?</li>
<li>Who changed the user permissions?</li>
<li>If any new group has been added(need to get all users in the group if new group added)?</li>
<li>If any new user is added to group and who added and need to get added user details?</li>
<li>If any user or group is removed than removed group or user details?</li>
<li>If any permission is added or changed for user than what permission are added or changed?</li>
<li>If any permission are changed for group than what permission changed?</li>
</ol>

<p>Example Scenarios:</p>

<p>Action: At 11am, the Admin added User A to Trainees (Existing group)</p>

<p>Expected Result:<br>
Access to <code>\\server\share\folderXYZ</code> changed: <code>User A</code> now has Read access, given by Admin at 11am, because he is now member of Trainees, which has Read Access.</p>

<p>Hope question is clear. I have done lots of search and couldn't find the solution. Please let me know if any API or Service available or any alternatives available?</p>

<p>-Thanks</p>
