0

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:

Link to the picture

How can I get these usernames etc? And is this hard to add new usernames with permissions.

Thanks.

Daniel
  • 635
  • 1
  • 5
  • 22

1 Answers1

0

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.

Community
  • 1
  • 1
Ian Gilroy
  • 2,031
  • 16
  • 14