Using the UserProfileService WS to retrieve user information - InfoPath Dev
in

InfoPath Dev

Using the UserProfileService WS to retrieve user information

Last post 06-22-2009 09:33 AM by mjm917. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-18-2009 09:48 AM

    • mjm917
    • Not Ranked
    • Joined on 08-22-2008
    • Naperville, IL
    • Posts 16

    Using the UserProfileService WS to retrieve user information

    Anyone know how I can use the UserProfileService WS to query not only for the current user but for another user? I have successfully retrieved the current user's information but would also like to retrieve the information for the manager identified in the SP profile. The value for the "Manager" element is a fully qualified username (domain\username). I would like to present the manager's full name, email and phone. When the user click s the submit button, I will user the value in the managers email to send the form to him/her.

     If I can do this without code all the better.

    Any help would be appreciated.

    Thx

    mjm917
  • 06-18-2009 08:08 PM In reply to

    Re: Using the UserProfileService WS to retrieve user information

    You can absolutely do all of this.  I know you saw my other post, but you do have some other twists, however, they are all doable.  I love working with this web service, which has led me to finding many ways to leverage it far beyond the basics.  I have to admit that it is quite a dilemma, though, when you've worked so many hours figuring this stuff out and do it for a living but then are asked to divulge that info for free online.  I have not let that get in the way so far with all the help I've tried to provide on this and other sites, but I figure there has to be a point at which the amount of time spent to explain the solution in detail has to have some limit.  Sorry for the ramble, because it's new to me but not to the rest of the world who has been doing this for a long time (like the great MVPs on this site).

    Anyway, maybe you can get over the hump with the info I gave in that other thread PLUS the knowledge that you need to do a substring-after on the Manager's domain name to strip the AccountName out of it so that you can send it back to the web service.

  • 06-19-2009 12:43 AM In reply to

    Re: Using the UserProfileService WS to retrieve user information

    Qdabra provides an easier to use Active Directory Web Service with documentation and online support. It's free as part of the trial download of DBXL, so you can take it for a test drive for a couple months before you even have to pay for it. Check it out: http://www.qdabra.com/en/products/ADWebService.aspx. We have hundreds of happy users...

    Patrick Halstead
    Project Manager at Qdabra
  • 06-20-2009 11:29 PM In reply to

    Re: Using the UserProfileService WS to retrieve user information

    Ok, I actually finished my blog entry showing how to do this and much more with the UserProfileService.  The blog entry is huge, so be sure to block off some time to follow the walkthrough step-by-step on your system:

    InfoPath – Get the current user without writing code (extended)

  • 06-22-2009 09:33 AM In reply to

    • mjm917
    • Not Ranked
    • Joined on 08-22-2008
    • Naperville, IL
    • Posts 16

    Re: Using the UserProfileService WS to retrieve user information

    Thanks for putting that BLOG entry together. My problem was trying to set/change the AccountName parameter of the UserProfileService web service.

    Thx

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