There is an alternative to using the listFirst() function. Try using the "mailNickname" attribute. That should pull out the user name of the email address. There is no point in returning extra bytes that you will discard anyway.
m!ke -----Original Message----- From: Ian Vaughan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 6:43 AM To: CF-Talk Subject: RE: Coldfusion and Active Directory Hi Mike I have also added the AD attribute userprinciplename but it returns the full email address that is contained in this attribute i.e. [EMAIL PROTECTED] How can I extract just the first part 'ian' to be displayed in the CSV Any ideas? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301491 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

