Permission on directories for the entire domain

1

I'm trying to create a folder and give it read permissions:

public static void createFolder(string path) {
    DirectorySecurity securityRules = new DirectorySecurity();
    securityRules.AddAccessRule(new FileSystemAccessRule(@"EMPRESA\account1", FileSystemRights.Read, AccessControlType.Allow));
    Directory.CreateDirectory(path, securityRules);
}

I would like to allow access to this folder for any domain login. How do I leave @Dominio\usuarios to do this?

Thank you!

    
asked by anonymous 26.07.2017 / 19:55

0 answers