Hi Patrick and thanks for the welcome.
I am afraid that I may not have made myself clear in the initial post.
I have a SharePoint list that has the following columns
1) "Examiner Name" (type = person)
2) "Faculty" (type = single line of text)
3) "Course" (type = single line of text)
When the user opens up a new form I want to show a dropdown list of Courses that he/she is the examiner for.
I already have a field on the form which captures the UserName() and this is what I am trying to use as the filter for the SharePoint list.
The problem is that the datasource associated with my SharePoint list does not return the UserName, instead it returns the Preferred Name (at least it does with owssvr.dll). The problem is that in our domain Preferred Names are not unique so we can't really filter using Preferred Name.
What I am looking for is a way to expose the UserName element from the person column in the SharePoint list so that we can filter the datasource using the UserName() in InfoPath.