Hello,
Thank you for specifying. You can use the following script:
# Get the container where the manager is located
$templateDN = New-Object Softerra.Adaxes.Ldap.DN "%param-template%"
$templateParentDN = $templateDN.Parent
if ($managerParentDN -eq "%adm-ParentDN%")
{
return
}
# Move the user
$targetContainer = $Context.BindToObjectByDN($templateParentDN)
$targetContainer.MoveHere($Context.TargetObject.AdsPath, $NULL)