Hi, trying to add access for a group to a UnifiedDirectory folder with following code. Everything look ok while debugging, after acl.add the key is added for my group but method Save don´t seem to save the changes. Anyone got any ideas?
public static void AddFolderAccessForGroup(UnifiedDirectory folder, AccessControlEntry ace)
var acl = folder.ACL.CreateWritableClone();
acl.IsInherited = false;
What kind of Provider is your folder in? For example VirtualPathNativeProvider or VirtualPathVersioningProvider?
Been a while since I did any work with ACLs, but I think you might have to assign that ACL to your UnifiedDirectory once you've saved the ACL. Not sure if the ACL property has a setter, but can you do folder.ACL = acl; after acl.Save()?