I am using a delimited text driver and when a user syncs, I want to find out who the users manager is, and then once I have the manager....I want to get the managers first name. The problem that I am having, I can successfully get the value of the manager (\TREE\USER\BUNCLE) off of my user, but when it queries for the Given Name, it does the query for the user account that is syncing (\TREE\USER\DBROWN) and not the manager. To sum it up, in the trace below, DBROWN is the user that is syncing, and his manager is BUNCLE and from the user alone syncing, I want to determine who the manager is and then get the managers first name and I am trying to use the query noun to do so. Trace is below.

10:00:41 2F50C700 Drvrs: IDM-Export ST: Token Value: "\TREE\USER\BUNCLE".
10:00:41 2F50C700 Drvrs: IDM-Export ST: Arg Value: "\TREE\USER\BUNCLE".
10:00:41 2F50C700 Drvrs: IDM-Export ST: Action: do-add-dest-attr-value("ManagerFirstName",token-query(class-name="User",arg-match-attr("manager",token-attr("manager")),token-src-attr("Given Name"))).
10:00:41 2F50C700 Drvrs: IDM-Export ST: arg-string(token-query(class-name="User",arg-match-attr("manager",token-attr("manager")),token-src-attr("Given Name")))
10:00:41 2F50C700 Drvrs: IDM-Export ST: token-query(class-name="User",arg-match-attr("manager",token-attr("manager")),token-src-attr("Given Name"))
10:00:41 2F50C700 Drvrs: IDM-Export ST: arg-match-attr("manager",token-attr("manager"))
10:00:41 2F50C700 Drvrs: IDM-Export ST: arg-string(token-attr("manager"))
10:00:41 2F50C700 Drvrs: IDM-Export ST: token-attr("manager")
10:00:41 2F50C700 Drvrs: IDM-Export ST: Token Value: "\TREE\USER\BUNCLE".
10:00:41 2F50C700 Drvrs: IDM-Export ST: Arg Value: "\TREE\USER\BUNCLE".
10:00:41 2F50C700 Drvrs: IDM-Export ST: arg-string(token-src-attr("Given Name"))
10:00:41 2F50C700 Drvrs: IDM-Export ST: token-src-attr("Given Name")
10:00:41 2F50C700 Drvrs: IDM-Export ST: Query from policy
10:00:41 2F50C700 Drvrs: IDM-Export ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.5.4.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<input>
<query class-name="User" dest-dn="\TREE\USER\DBROWN" dest-entry-id="34004" scope="entry">
<read-attr attr-name="Given Name"/>
</query>
</input>
</nds>
10:00:41 2F50C700 Drvrs: IDM-Export ST: Pumping XDS to eDirectory.
10:00:41 2F50C700 Drvrs: IDM-Export ST: Performing operation query for \TREE\USER\DBROWN.
10:00:41 2F50C700 Drvrs: IDM-Export ST: --JCLNT-- \DRIVER\DN\IDM-Export : Duplicating : context = 2024210525, tempContext = 2024210546
10:00:41 2F50C700 Drvrs: IDM-Export ST: --JCLNT-- \DRIVER\DN\IDM-Export : Calling free on tempContext = 2024210546
10:00:41 2F50C700 Drvrs: IDM-Export ST: Query from policy result
10:00:41 2F50C700 Drvrs: IDM-Export ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.5.4.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<output>
<instance class-name="User" qualified-src-dn="O=CNN\OU=USER\CN=DBROWN" src-dn="\TREE\USER\DBROWN" src-entry-id="34004">
<attr attr-name="Given Name">
<value timestamp="1497634104#2" type="string">David</value>
</attr>
</instance>
<status level="success"></status>
</output>
</nds>
10:00:41 2F50C700 Drvrs: IDM-Export ST: Token Value: "David".
10:00:41 2F50C700 Drvrs: IDM-Export ST: Arg Value: "David".
10:00:41 2F50C700 Drvrs: IDM-Export ST: Query from policy
10:00:41 2F50C700 Drvrs: IDM-Export ST:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.5.4.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<input>
<query class-name="User" scope="subtree">
<search-class class-name="User"/>
<search-attr attr-name="manager">
<value type="string">\TREE\USER\BUNCLE</value>
</search-attr>
<read-attr attr-name="David"/>
</query>
</input>
</nds>