I use the following code behind to update the user of a user field. The property allow multiple users is set for this field. How can I keep the users who are already present in this list and add the new user? (Now the field is cleared and refilled with the new value)
using (SPWeb Web = Site.RootWeb) { SPUser user = Web.EnsureUser(UserName); SPFieldUserValue fuv = new SPFieldUserValue(Web, user.ID, user.LoginName); SPList List = Web.Lists["MyList"]; SPListItem item = List.GetItemById(ID); Web.AllowUnsafeUpdates = true; item["MultipleUsersField"] = fuv; item.Update(); Web.AllowUnsafeUpdates = false;