sorengranfeldt/mare

Create UPN by Concatenating AccountName with domain name

Regman007 opened this issue · 3 comments

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

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>

Marking as resolved since no reply

Thank you Soren for the solution. it worked.