public static void AddUsrToGrp(string wsId, string grpName, string usrIdToAdd, ImDbType imDbType = ImDbType.Active) { //--V469-583-S //IMANADMIN.INRTGroup inrtGrp = NrtSession.GetInstance.GetDb(imDbType).GetGroup(grpName); IMANADMIN.INRTGroup inrtGrp = NrtSession2.AdminDb(imDbType).GetGroup(grpName); //--V469-583-E inrtGrp.AddUser(usrIdToAdd); }
public static void RemoveUsrFromGrp(string wsId, string grpName, string usrIdToRemove, ImDbType imDbType = ImDbType.Active) { //IMANADMIN.INRTUser inrtUsr = NrtSession.GetInstance.GetDb(imDbType).GetUser(AmUtil.GetCurrentUser); //--V469-583-S //IMANADMIN.INRTGroup inrtGrp = NrtSession.GetInstance.GetDb(imDbType).GetGroup(grpName); IMANADMIN.INRTGroup inrtGrp = NrtSession2.AdminDb(imDbType).GetGroup(grpName); //--V469-583-E inrtGrp.DeleteUser(usrIdToRemove); //IManWorkspace imWs = WsUtility.GetObjectByID<IManWorkspace>(wsId); //imWs.Security.GroupACLs.ItemByName("").Group.Users.re }