Hello,
I'm trying to programmatically modify Lf folder's Entry Access by adding a group to the folder with specified access. The function below executes without exception but I see no change to the specified folder: the specified group is not mentioned in the list of Access Rights Trustees.
public void AddGroupToFolder(string theFolder, string theGroup) { EntryInfo folderEntryInfo; folderEntryInfo = Entry.GetEntryInfo(theFolder, _session); EntrySecurity folderEntrySecurity = folderEntryInfo.GetAccessControl(); AccountReference groupAccountReference = new AccountReference(theGroup, _session); EntryAccessRule groupEntryAccessRule = new EntryAccessRule(groupAccountReference, EntryRights.Read, EntryAccessScope.All, System.Security.AccessControl.AccessControlType.Allow); folderEntrySecurity.ResetAccessRule(groupEntryAccessRule); folderEntryInfo.SetAccessControl(folderEntrySecurity); folderEntryInfo.Save(); }