The default DisplayName script on Provision or Update Attributes tab is looking at the source "cn" attribute. It will retrieve the cn value up to 255 characters.
Depending on how many values are on the User Name field of the Person Document:
Domino LDAP may return the second value which is FirstName LastName as "cn"
Is there a way to change that by using a script?
RESOLUTION 1
RESOLUTION 2
This script will use Surname,Firstname or only Surname if Firstname is not available. If both Surname and Fistname are not available it will use the CN
$givenname = $srcobj["givenName"]
$sn = $srcobj["sn"]
if ($sn -ne $null)
{
$ans = "$sn"
if ($givenname -ne $null) {$ans = $ans + "," + $givenname}
}
else
{
$t = $srcobj["cn"]
if([string]::IsNullOrEmpty($t)) {$ans = $null}
else {$ans = $t.Substring(0,[Math]::Min(255,$t.Length))}
}
$ans
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center