Create UPN by Concatenating AccountName with domain name
Regman007 opened this issue · 3 comments
Regman007 commented
I am trying the create user principal name by joining the AccountName with a domain name. Example:
The AccountName is "Jsmith" and the domain "domain1.com"
the result should be "Jsmith@domain1.com"
How can I achieve that?
Thanks
sorengranfeldt commented
Have a look at the different samples - but basically, you would just add more source expressions and the different values would be concatenated, i.e.
<SourceExpression>
<Source Name="Domain" xsi:type="Attribute">
<Transforms>
<Transform xsi:type="ToLower"/>
</Transforms>
</Source>
<Source Value=" @" xsi:type="Constant"/>
<Source Name="AccountName" xsi:type="Attribute"/>
</SourceExpression>
sorengranfeldt commented
Marking as resolved since no reply
Regman007 commented
Thank you Soren for the solution. it worked.