GetUserProfileByName not giving consistent results - InfoPath Dev
in

InfoPath Dev

GetUserProfileByName not giving consistent results

Last post 01-14-2013 02:22 PM by TomRenfro. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-14-2013 11:04 AM

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    GetUserProfileByName not giving consistent results

    Hi, everybody.  I'm currently constructing a series of forms that uses the web service GetUserProfileByName via a data connection.  I'm calling UserProfileService.asmx in the data connection in InfoPath 2010, connecting with a form library on SharePoint 2010, then using GetUserProfileByName to retrieve the current user's preferred name, manager ID, and department as defined in Active Directory.  These values prepopulate various fields on the respective forms, and, in some cases, replace the Account field value with the manager's ID to do another query for the manager's preferred name.

     The problem I'm having, and I just noticed this recently, is this method works for some of our user base, but not all.  In our organization the user ID in Active Directory is a 6 character string.  I can use that ID in an AD utility and get the expected results, but not always using GetUserProfileByName.

    Is there another method that might be more reliable to get the same data without having to write a bunch of code?  Thanks in advance.

  • 01-14-2013 02:22 PM In reply to

    • TomRenfro
    • Top 75 Contributor
      Male
    • Joined on 09-29-2011
    • Oklahoma City, OK
    • Posts 134

    Re: GetUserProfileByName not giving consistent results

    I think I know what's wrong.  We've got two different installations of SharePoint, one is 2007, which is the majority of our implementation, the other is 2010 and are migrating pages and sites gradually.  The forms I'm developing are in 2010.  Bottom line, the user's profiles on 2010 don't match 2007, so they are either incorrectly configured or something's broken when AD credentials are loaded to SP2010 user profiles.

    It would be better if I could poll AD directly, rather than depend on SharePoint.  Don't know how I can do this with declarative logic in rules without Qdabra's Active Directory utility or DBXL.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.