When running a migration job, you receive the following error in the log:
As of Content Matrix 7.4.0.1, there has been a change to the location of the Xml Utility used within the user mapping transformer script. Originally, the script referenced [Metalogix.Xml.XmlUtility]. It has been changed to [Metalogix.Utilities.XmlUtility].
$claimsToken = "i:0#.w|" $emailHost = "@metalogix.com" $originalName = $dataObject.LoginName $userName = $originalName $slashIndex = $userName.IndexOf("\") if($slashIndex -ge 0) { $userName = $userName.Substring($slashIndex + 1) } $userName = "$claimsToken$userName$emailHost" $xml = $dataObject.Xml.Replace($originalName, $userName) $xmlNode = [Metalogix.Xml.XmlUtility]::StringToXmlNode($xml) $dataObject = new-object Metalogix.SharePoint.SPUser $xmlNode
Please use the updated template below for the user mapping transformer script:
$claimsToken = "i:0#.w|" $emailHost = "@metalogix.com" $originalName = $dataObject.LoginName $userName = $originalName $slashIndex = $userName.IndexOf("\") if($slashIndex -ge 0) { $userName = $userName.Substring($slashIndex + 1) } $userName = "$claimsToken$userName$emailHost" $xml = $dataObject.Xml.Replace($originalName, $userName) $xmlNode = [Metalogix.Utilities.XmlUtility]::StringToXmlNode($xml) $dataObject = new-object Metalogix.SharePoint.SPUser $xmlNode
Note: For migrations to Office 365, you will want to change the claims token to "i:0#.f|membership|" such as:
$claimsToken = "i:0#.f|membership|"
For additional information about applying user mapping from Active Directory to Claims, please refer to the Content Matrix User Mapping from AD to Claims including O365 document included in the installation package.
DISCLAIMER
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center