New answers tagged user-accounts
From your question and comments we conclude that you are stuck from migrating SharePoint 2010 to SharePoint 2013 using Database Attach Upgrade Process. And you migrating your SharePoint to a new domain, since you mentioned this "(OldDomain\account1 -> newDomain\account1)". Now I would like you to check and go through these articles and perform the steps. ...
The answer above is not only missing some key steps about setting up the whole process in SP, most importantly: the Maxmind link above will no longer work as they no longer offer the free service and the link is invalid. Search for a solution integrating Google maps.
Use instead: List<SPUser> users = new List<SPUser>(); //SPUser user = web.EnsureUser(userValue.User.LoginName); users.add(user); So... your code: SPWeb web = SPContext.Current.Web; SPFieldUserValueCollection employees = item["employees"] as SPFieldUserValueCollection; List<SPUser> users = new List<SPUser>(); if (values != null) ...
Top 50 recent answers are included