Not the best XPath person here so asking the experts. The below
expression crashes anytime the DN is uppercased or different. I’m trying
to write-back the CN value from my Vault to PeopleSoft transaction

So anytime the following DN’s are received from PeopleSoft events
“DATA\USERS\UserName” or “DATA\ARCHIVE\UserName” the local variable name
VARpeoplesoft-cn is blank.

If the DN is received lowercase “Data\Users” works. Anyway to trim out
the CN value from right to left given the DN could be anything?

It will always be the below three cases.

<do-set-local-variable name="VARpeoplesoft-cn" scope="policy">
<do-add-dest-attr-value direct="true" name="DIRXML_USERID">
<token-xpath expression="operation-data/peoplesoft-src-id"/>
<arg-value type="string">
<token-local-variable name="VARpeoplesoft-cn"/>

rsw4723's Profile:
View this thread: