I have below mapped displayName in create profile and there are few employee type don’t have $ccad. when there no $ccad I am getting space at the end of display name.
Any idea how to remove that space when there is no $ccad.
<AttributeRequest name="displayName" op="Add" value="SPTest, SkeTestd "/>
{
"name": "displayName",
"transform": {
"type": "rule",
"attributes": {
"name": "Create Unique LDAP Attribute"
}
},
"attributes": {
"template": "$(lastname), $(firstname)$(uniqueCounter) $(ccad)"
},
"isRequired": false,
"type": "string",
"isMultiValued": false
}