Hi there,
Is there any way to add active directory group to folder and give modify permission to this new group?
right click to folder → properties → security → edit → add → new user group and allow modify modify

Hi there,
Is there any way to add active directory group to folder and give modify permission to this new group?
right click to folder → properties → security → edit → add → new user group and allow modify modify
Please try this
Dim FolderInfo As IO.DirectoryInfo = New IO.DirectoryInfo(FolderPath)
Dim FolderAcl As System.Security.AccessControl.DirectorySecurity = FolderInfo.GetAccessControl()
FolderAcl.AddAccessRule(New System.Security.AccessControl.FileSystemAccessRule(UserAccount, System.Security.AccessControl.FileSystemRights.Modify, System.Security.AccessControl.InheritanceFlags.ContainerInherit Or System.Security.AccessControl.InheritanceFlags.ObjectInherit, System.Security.AccessControl.PropagationFlags.None, System.Security.AccessControl.AccessControlType.Allow))
FolderInfo.SetAccessControl(FolderAcl)
Useraccount - As Appears in the access window when search Eg: Laptopxyz\abc
cheers
Thank you very much, perfect solution.
If you have time, could you please check also this:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.