Hello Jordan,
Thank you for the confirmation. Please, find the script below. In the script:
- $propertyStoringValuesName - Specifies the LDAP name of the multi-valued property to take values from.
- $propertyToUpdateName - Specifies the LDAP name of the property to save values to.
$propertyStoringValuesName = "adm-CustomAttributeTextMultiValue1" # TODO: modify me
$propertyToUpdateName = "extensionAttribute15" # TODO: modify me
# Get property values
try
{
$values = $Context.TargetObject.GetEx($propertyStoringValuesName)
}
catch
{
$Context.LogMessage("Property $propertyStoringValuesName is empty. Property $propertyToUpdateName will be cleared", "Warning")
$Context.TargetObject.Put($propertyToUpdateName, $NULL)
$Context.TargetObject.SetInfo()
return
}
$valuesToSet = [system.String]::Join(",", $values)
# Update the user
$Context.TargetObject.Put($propertyToUpdateName, $valuesToSet)
$Context.TargetObject.SetInfo()