<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: MOSS User Profile Service Issue</title><link>https://www.infopathdev.com:443/forums/thread/54496.aspx</link><pubDate>Tue, 04 May 2010 15:03:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54496</guid><dc:creator>AM2010</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54496.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=54496</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve got a little bit more information on this, so I&amp;#39;d appreciated any guidance anyone could provide.&lt;/p&gt;
&lt;p&gt;After some experimentation it appears that the call to GetUserProfileByName doesn&amp;#39;t work for specific users in our Active Directory.&amp;nbsp; We&amp;#39;ve got a complicated AD setup with a central AD domain controller and many other domain controllers that have two-way trusts setup with the main domain controller.&amp;nbsp; Now we have &lt;strong&gt;some &lt;/strong&gt;accounts with the same name in these domains e.g. &lt;strong&gt;MainDomain\TestUser1&lt;/strong&gt; and &lt;strong&gt;TrustedDomain1\TestUser1&lt;/strong&gt; or &lt;strong&gt;MainDomain\TestUser2&lt;/strong&gt; and &lt;strong&gt;TrustedDomain2\TestUser2&lt;/strong&gt; etc.&amp;nbsp; Not all accounts are like this, the majority of the accounts&amp;nbsp;only exist in the main domain.&amp;nbsp; This AD setup is not ideal and we&amp;#39;re aware of this, but it&amp;#39;s the situation we&amp;#39;re in.&lt;/p&gt;
&lt;p&gt;The user profile database only contains users from the main domain (and no users from the trusted domains) e.g. &lt;strong&gt;MainDomain\TestUser1, MainDomain\TestUser2 &lt;/strong&gt;etc.&amp;nbsp; If we call the GetUserProfileByName web service and pass the user name of a user that only exists in the main domain it is found without any problem (note that we only pass the user name and not the domain name in this request).&amp;nbsp; If we pass the user name of a user that exists in multiple domains, the profile service can&amp;#39;t find the user.&amp;nbsp; For these users the call to the web service will only work if we specify the domain name when calling the web service (this isn&amp;#39;t an option for us as our forms do not contain any code and are deployed as Domain trust forms to SharePoint).&lt;/p&gt;
&lt;p&gt;My&amp;nbsp;guess&amp;nbsp;is that the User Profile web service is aware of the users in the trusted domains, even though these users haven&amp;#39;t been imported into the profile database. So when we make a request to the GetUserProfileByName, it doesn&amp;#39;t know which user we&amp;#39;re attempting to find and so it throws an exception to indicate the user could not be found.&amp;nbsp; As far as I&amp;#39;m concerned this should work as there is only one user in the profile database with the specified name, but I&amp;#39;m not sure what the web service does behind the scenes.&lt;/p&gt;
&lt;p&gt;This has worked in our development environment and our test environment as the SharePoint installation has always been on a single server, which has also been used as the domain controller.&amp;nbsp; We&amp;#39;re in the latter stages of deployment now and this issue has cropped up as we&amp;#39;re deploying to a MOSS server that isn&amp;#39;t a domain controller.&lt;/p&gt;
&lt;p&gt;This is a long shot but would any of you have any advice on this?&amp;nbsp; I&amp;#39;m aware this is potentially a unique scenario so I&amp;#39;ve got my fingers crossed that someone can help me out with this one.&amp;nbsp;&amp;nbsp; Any help would be very much appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks&lt;/p&gt;</description></item><item><title>Re: MOSS User Profile Service Issue</title><link>https://www.infopathdev.com:443/forums/thread/54427.aspx</link><pubDate>Sun, 02 May 2010 22:07:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54427</guid><dc:creator>AM2010</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=54427</wfw:commentRss><description>&lt;p&gt;Anybody got any ideas on this?&lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to retrieve another user&amp;#39;s profile.&amp;nbsp; The GetUserProfileByName web service works if I specify the username as domain\username, but it won&amp;#39;t work if I only specify the username. It comes back with an error indicating the specified user could not be found.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve had this working in another test environment by just passing the username, but now I&amp;#39;ve got quite a few browser based forms calling this web service without passing the domain name. I don&amp;#39;t want to have to specify the domain name in each and every form, so I&amp;#39;d rather find out why passing the username works in one environment but not in another.&lt;/p&gt;&lt;p&gt;Anybody have any suggestions?&lt;/p&gt;&lt;p&gt;Thanks for the help &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MOSS User Profile Service Issue</title><link>https://www.infopathdev.com:443/forums/thread/54370.aspx</link><pubDate>Thu, 29 Apr 2010 18:12:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54370</guid><dc:creator>AM2010</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54370.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=54370</wfw:commentRss><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I wasn&amp;#39;t aware the user profile wasn&amp;#39;t created until the user accesses the site.&amp;nbsp; I always thought that once it was in the SSP, it was in the user profile database and therefore should be available using the UserProfileService.asmx.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve since done some more investigation with this and found that if I call the service and pass the domain name it finds the user, but won&amp;#39;t find the user without the domain name.&amp;nbsp; So &lt;b&gt;testDomain\testUser1&lt;/b&gt; finds the user profile fine, but passing just &lt;b&gt;testUser1 &lt;/b&gt;won&amp;#39;t pick up the right user profile. Unfortunately hardcoding the domain name in the InfoPath forms isn&amp;#39;t a viable option, so I was wondering whether this might be something I can configure on the MOSS server itself.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The weird thing is I&amp;#39;ve had this working in another environment by just passing the username, but there were a few differences between the environments.&amp;nbsp; The main one being the server that works is a single server install of MOSS, while the server that doesn&amp;#39;t work is configured as a server farm.&amp;nbsp; The other main difference is that the server where it worked was a domain controller, whereas the server farm isn&amp;#39;t a domain controller.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve had a bit of a hunt around the web and couldn&amp;#39;t find any similar issues encountered by anyone else.&amp;nbsp; Anyone have any ideas or had anything similar to this?&lt;/p&gt;&lt;p&gt;Thanks in advance &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: MOSS User Profile Service Issue</title><link>https://www.infopathdev.com:443/forums/thread/54363.aspx</link><pubDate>Thu, 29 Apr 2010 17:01:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54363</guid><dc:creator>Ted Fitch</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=54363</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SharePoint user profile isn&amp;#39;t actually created until the user goes to the site for the first time.&amp;nbsp; I am not away of how you can change this or keep SharePoint in synch with your AD (there probaby is a way to do this, I just don&amp;#39;t know how).&lt;/p&gt;
&lt;p&gt;You might want to look at our Active Directory Web Service (&lt;a href="http://www.qdabra.com/en/products/ADWebService.aspx"&gt;ADWS&lt;/a&gt;) - it uses the full AD and not the SharePoint user list.&amp;nbsp; You install this on your SharePoint front end and then you can use the web service in InfoPath to get data about the user.&amp;nbsp; It brings you all kinds of additional information about the user (whatever you store in your GAL) which gives you a lot more flexibility and features than you get with the SharePoint user info&lt;/p&gt;
&lt;p&gt;Ted&lt;/p&gt;</description></item><item><title>MOSS User Profile Service Issue</title><link>https://www.infopathdev.com:443/forums/thread/54343.aspx</link><pubDate>Thu, 29 Apr 2010 12:41:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54343</guid><dc:creator>AM2010</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54343.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=54343</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m using MOSS 2007 with SP2 and FEB 2010 CU applied.&amp;nbsp; We&amp;#39;ve set up a server farm and we have a site collection hosting Infopath forms.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to use the MOSS user profile service and specifically the GetUserProfileByName web service method to get a user&amp;#39;s display name and email address.&amp;nbsp; Unfortunately&amp;nbsp; I&amp;#39;m having problems calling the web service, with some users not being found.&lt;/p&gt;
&lt;p&gt;If a user logs in and accesses the SharePoint site, the web service (being called from an InfoPath form) finds their user profile without any issue.&amp;nbsp; However if the user hasn&amp;#39;t accessed SharePoint before, the user profile cannot be found (again from an InfoPath form being accessed by a different user).&amp;nbsp; As soon as we log in to the SharePoint site as the user that could not be found, the user profile seems to be activated and can be found by the GetUserProfileByName method (even when called by a different user).&amp;nbsp; &lt;/p&gt;
&lt;p&gt;It seems like the user profile gets activated when the user logs in but before this point the user profile isn&amp;#39;t visible to the web service.&amp;nbsp; I&amp;#39;ve also tried running SPWeb.EnsureUser and this seems to activate the profile as well.&lt;/p&gt;
&lt;p&gt;Does anyone have any ideas as to why these user profiles can&amp;#39;t be found?&amp;nbsp; Is it failing to synchronise these profiles properly with the site collection?&amp;nbsp; The timer job for Profile Synchronisation seems to be running fine and there aren&amp;#39;t any obvious errors in the error log, so I&amp;#39;m not sure why the profiles can&amp;#39;t be found.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Is it a permissions issue?&amp;nbsp; All authenticated users have the &amp;#39;Personal Feature&amp;#39; and &amp;#39;Personal Site&amp;#39; permissions in the shared service provider.&amp;nbsp; Our service accounts also have all the personaliation services permissions.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I&amp;#39;m really at a loss as to why this issue is occuring.&amp;nbsp; The user profile is there and can be viewed through the SSP so why can&amp;#39;t the webservice find it?&amp;nbsp; The workaround would be to use the SPWeb.EnsureUser method to add all the users to the site collection but this seems a little extreme when the user profile service should work.&lt;/p&gt;
&lt;p&gt;Thanks in advance for any help.&lt;/p&gt;</description></item></channel></rss>