<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>User Profile Service</title><link>https://www.infopathdev.com:443/forums/thread/72179.aspx</link><pubDate>Thu, 17 Nov 2011 23:47:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:72179</guid><dc:creator>MarsdeNation</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/72179.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=72179</wfw:commentRss><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;&lt;p&gt;I want to be able to query active directory with a user name to see if it exists when my form loads.&lt;/p&gt;&lt;p&gt;I can put the current user name (the current user who has opened the form) into a form field thanks to this post:&lt;br /&gt;http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx&lt;/p&gt;&lt;p&gt;This uses the GetUserProfileByName operation.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But I was hoping to be able to specify a user name (other than me who has opened the form) and then query Active Directory to see if they exist.&lt;/p&gt;&lt;p&gt;For example I login to Sharepoint 2010 with a user name &amp;quot;Testing1&amp;quot;, open an existing form with a data source that has a different value for a user name called &amp;quot;NewUser&amp;quot;, and I want to see if the &amp;quot;NewUser&amp;quot; account exists rather than show me details of the &amp;#39;Testing1&amp;quot; user account that I am logged in as.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I am aware of the Person/Group Picker but to use this it has to be done manually and I was hoping to automate and validate this process without having to type the user name manually into a Person/Group Picker. &lt;/p&gt;&lt;p&gt;Can this be done without code with the User Profile Service?&lt;/p&gt;&lt;p&gt;Hope this makes sense&lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>