I am attempting to send a e-mail notification when a user is deleted in
DSEE. The removal should have a veto which it does however the part
where I am attempting to retrieve the first and last name from the vault
of the person that deleted in DSEE is failing and I am not exactly sure
what I am doing wrong. Here is the error I get in the trace log...

>
> Message: Code(-9145) Error in
> vnd.nds.stream://GFSIDVSIT/SERVICES/DriverSet1/DSEE/itp-Veto+and+notify#XmlData:259
> : Unable to determine target object for action
> 'token-query(class-name="User",max-result-count="1",scope="subordinates",arg-dn(token-dest-attr("givenname",class-name="User",arg-dn(""\"+Global
> Configuration Value("Tree")+"\VAULT\"+Source
> Name()"))),arg-match-attr("givenname"),token-dest-attr("Surname",class-name="User"))'.
>


Here is my current code....

Code:
--------------------

<rule>
<description>Veto employee deletes</description>
<comment xml:space="preserve">7.3.5 - Deletions of associated objects on the Publisher channel will be vetoed, and the association removed. Notification is also sent to the iam team to notify them that an employee was deleted in DSEE.</comment>
<conditions>
<and>
<if-operation mode="case" op="equal">delete</if-operation>
<if-local-variable mode="nocase" name="varE" op="equal">e</if-local-variable>
</and>
</conditions>
<actions>
<do-set-local-variable name="GetFullName" scope="policy">
<arg-string>
<token-query class-name="User" max-result-count="1" scope="subordinates">
<arg-dn>
<token-dest-attr class-name="User" name="givenname">
<arg-dn>
<token-text xml:space="preserve">"\"+Global Configuration Value("Tree")+"\VAULT\"+Source Name()</token-text>
</arg-dn>
</token-dest-attr>
</arg-dn>
<arg-match-attr name="givenname"/>
<arg-string>
<token-dest-attr class-name="User" name="Surname"/>
</arg-string>
</token-query>
<token-src-attr class-name="User" name="Given Name">
<arg-dn>
<token-text xml:space="preserve">"\"+Global Configuration Value("Tree")+"\VAULT\*"+Source Name()</token-text>
</arg-dn>
</token-src-attr>
<token-text xml:space="preserve"> </token-text>
<token-src-attr class-name="User" name="Surname">
<arg-dn>
<token-text xml:space="preserve">"\"+Global Configuration Value("Tree")+"\VAULT\*"+Source Name()</token-text>
</arg-dn>
</token-src-attr>
</arg-string>
</do-set-local-variable>
<do-if>
<arg-conditions>
<and>
<if-local-variable mode="nocase" name="GetFullName" op="equal"/>
</and>
</arg-conditions>
<arg-actions>
<do-send-email-from-template notification-dn="Security\Default Notification Collection" template-dn="Security\Default Notification Collection\gfs-IAM notifiication of out of process Delete">
<arg-string name="to">
<token-text xml:space="preserve">user1@IAM</token-text>
</arg-string>
<arg-string name="FullName">
<token-text xml:space="preserve">User not in Vault</token-text>
</arg-string>
<arg-string name="from">
<token-text xml:space="preserve">user1@IAM</token-text>
</arg-string>
<arg-string name="CN">
<token-src-name/>
</arg-string>
<arg-string name="System">
<token-text xml:space="preserve">DSEE</token-text>
</arg-string>
</do-send-email-from-template>
</arg-actions>
<arg-actions>
<do-send-email-from-template notification-dn="Security\Default Notification Collection" template-dn="Security\Default Notification Collection\gfs-IAM notifiication of out of process Delete">
<arg-string name="to">
<token-text xml:space="preserve">user1@IAM</token-text>
</arg-string>
<arg-string name="FullName">
<token-local-variable name="GetFullName"/>
</arg-string>
<arg-string name="from">
<token-text xml:space="preserve">user1@IAM</token-text>
</arg-string>
<arg-string name="CN">
<token-src-name/>
</arg-string>
<arg-string name="System">
<token-text xml:space="preserve">DSEE</token-text>
</arg-string>
</do-send-email-from-template>
</arg-actions>
</do-if>
<do-remove-association>
<arg-association>
<token-association/>
</arg-association>
</do-remove-association>
<do-veto/>
</actions>
</rule>

--------------------


Can somebody show me what I must be doing wrong here?

Thank you


--
larryleeroberts
------------------------------------------------------------------------
larryleeroberts's Profile: http://forums.novell.com/member.php?userid=21217
View this thread: http://forums.novell.com/showthread.php?t=429145