I'm facing a problem with Sharepoint as I must change the Login name of my users. I'm in a claim based installation and I decide to use GUID as unique identifier.
By Sharepoint PowerShell I found how to do it and works.. How can I change it programmatically? LoginName properties seems to be read only!
Here's the way I rename it on Powershell:
Move-SPUser -Identity $User2 -NewAlias "i:05.t|saml provider|MYBASE65GUID==@DOMAIN.dom" -IgnoreSID
Anybody knows a way to do that programmatically in Sharepoint?