I have some problem. I tried to search solving in the internet, but didn’t find them (they didn’t work).
The problem is…
For example I have some folder: “directory1”, I must get usernames and their permissions regarding this folder..
I found a screenshot (not my) to demonstrate what I mean:
How can I get these usernames etc? And is this hard to add new usernames with permissions.
Thanks.
This SO question has an example with the types you need to use to get the information that you’re looking for: Duplicate GetAccessRules, FileSystemAccessRule entries.
You can also modify permissions on the folder using the same underlying classes.