How do you calculate the effective rights for the current windows user and a specified directory? I see how you can retrieve the DACL for a Directory using:
I see that you can get all the access rules for the DACL using:
var authRules = myDirectorySecurity.GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount));
This seems to return all acess control entries for the given DACL. I need to determine the effective rights for the current windows user against a give directory.
How can I retrieve or calculate the effective rights for a given user on a given folder? I basically need to determine if the current windows user has read/write/delete permissions for a given folder.
View Complete Post