posted on August 25, 2016
I am trying to add an existing Windows account set in laserfiche to a new creation group.
I make my group creation by using script but fail to add Windows account.
I can add laserfiche account but I want to add Windows account.
// create group try { GroupInfo GI = new GroupInfo(); GI.Name = "1234-4321"; GI.Session = RASession; GI.FeatureRights = FeatureRights.Scan | FeatureRights.Search | FeatureRights.Print | FeatureRights.Export; GI.Save(); // assign member to group AccountInfo AI = Account.GetInfo(GI.Name, RASession); AccountReference AR = new AccountReference(AI); List<string> list = new List<string>(); list.Add("domain\\newuser"); list.Add("admin"); IEnumerable<string> newlist = list; Account.AddMembersToGroup(AR, newlist, RASession); } catch (Exception ex) { MsgBox("error in creation group, group already exist" + ex); }
0
0