Question : update user name change from AD to sharepoint 2007

Hi there,
We have changed the user name in AD of a user several months ago but the change hasn't propagated to our sharepoint.. New users are getting updated in sharepoint however
I haven't found any good howto's on this but this looks like it may not be an easy task to perform http://groups.google.com/group/microsoft.public.sharepoint.windowsservices/browse_thread/thread/f2721800a477f800
1:
2:
3:
4:
5:
6:
7:
stsadm.exe -o migrateuser
           -oldlogin <DOMAIN\name>
           -newlogin <DOMAIN\name>
           [-ignoresidhistory]

C:\>stsadm.exe -o migrateuser -oldlogin <...> -newlogin <...> -
ignoresidhistory

Answer : update user name change from AD to sharepoint 2007

Hi chaffinsjc;

If you are using Visual Studio .Net 2008 or 2010 then you can use the set operator Except to get what you need.

Fernando
1:
2:
3:
4:
5:
6:
// Making the originals as List<string> will be more effecent
List<string> usableItems = new List<string>() { "1", "b7", "13" };
List<string> originalItems = new List<string>() { "1", "3", "5", "b7", "9", "11", "13" };

// Result string Array
string[] discardedItems = originalItems.Except(usableItems).ToArray();
Random Solutions  
 
programming4us programming4us