修改loginname
xcg 2014-03-24 10:49:21 写了个批量修改用户组的接口
SPUser user = web.SiteUsers.GetByID(userID);
web.AllowUnsafeUpdates = true;
group.RemoveUser(user);
newGroup.AddUser(user);
user.Update();
执行后发现有的用户的LoginName变了,还有的用户找不到了,不知跟上面的代码有没有关系;
LoginName这个只读属性怎么修改呢?