Read Email Attribute from Group:
<do-set-local-variable name="local.sub.etp.MailboxEmail" scope="policy">
<arg-node-set>
<token-src-attr class-name="Group" name="EMail Address">
<arg-dn>
<token-local-variable name="loca.sub.etp.Group"/>
</arg-dn>
</token-src-attr>
</arg-node-set>
</do-set-local-variable>
This would do following Output:
<nds dtdversion="4.0" ndsversion="8.x"> <source> <product edition="Advanced" version="4.5.6.0">DirXML</product> <contact>NetIQ Corporation</contact> </source> <output> <instance class-name="Group" qualified-src-dn="/N/A" src-dn="/N/A" src-entry-id="1026028"> <attr attr-name="EMail Address"> <value timestamp="1517759042#70" type="structured"> <component name="eMailType">3</component> <component name="eMailAddr">na@noname.com</component> </value> </attr> </instance> <status level="success"></status> </output> </nds>
Do Xpath to read the eMailAddr part from it:
<do-set-local-variable name="SingleEmailAddress" scope="policy"> <arg-string> <token-xpath expression="$local.sub.etp.MailboxEmail/component[@name='eMailAddr']"/> </arg-string> </do-set-local-variable>
Comments