Look up a SharePoint User Name - InfoPath Dev
in

InfoPath Dev

Look up a SharePoint User Name

Last post 12-04-2008 06:35 AM by JSwatter. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 11-24-2008 01:24 PM

    Look up a SharePoint User Name

    Hi everyone,

    I am fairly new to InfoPath and SharePoint development, so please bear with me as I try solve a potential problem. I have a couple text fields on my form where a user can input a user name. I would like to convert this user's name into its SharePoint equivalent. While I have seen Greg Collin's post - his post describes how to provide such an information in a drop down. I would like to see the text entered to perform a query or search that would produce the SharePoint User Name equivalent.

    Is this something that is possible? This is being done in InfoPath 2003 and SharePoint 2003.

  • 11-24-2008 06:02 PM In reply to

    Re: Look up a SharePoint User Name

    Hello and welcome to our forums!

    This post might help you http://www.infopathdev.com/blogs/agni/archive/2006/05/15/Query-for-Items-in-SharePoint-Form-Library-Using-GetListItems-Web-Method.aspx. You can use GetListItems web method to get the name of the person logged into SharePoint.

    Jo-Anne Alfafara
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™
  • 11-25-2008 06:00 AM In reply to

    Re: Look up a SharePoint User Name

    Jo-Anne,

    I appreciate your willingness to help! While the article above speaks to the ability to pull the active user's information, I would like to search through the list of all registered users on the site. Is the method similar? Is there any way to pull that list item's information to query and search through?

     Thanks again!

  • 12-02-2008 08:39 PM In reply to

    Re: Look up a SharePoint User Name

    Hi,

    You want to show username as sharepoint equivalent, right?

    If so you can use contact selector control for that, instead of using textbox. It will directly give you the sharepoint username when user enters username.

    Take a look at this article. It will tell you how to use contact selector control.

    http://blogs.msdn.com/infopath/archive/2007/02/28/using-the-contact-selector-control.aspx

    Hope this helps.

    Rajitha
  • 12-02-2008 10:21 PM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Look up a SharePoint User Name

    Hello,

    Here is the web service link to get the user collection from SharePoint,

    http://%3cserver/ Name>/<Site Name>/_vti_bin/UserGroup.asmx

    In this link we have one method ‘GetUserCollection'. It will returns the user list available in SharePoint.

  • 12-04-2008 06:35 AM In reply to

    Re: Look up a SharePoint User Name

    Rajitha - Thanks for your input. I looked into the method you mentioned above and it appears it is only a function available in InfoPath 2007 - a problem since we are running 2003.

    Shiva - This method looks promising, however, when I try to set up the Data Connection using 'GetUserCollection' I am prompted for a sample value under 'ns1:userLoginNamesXml'. Is there any way to avoid having to define a sample value? What does this sample value accomplish? From trying to use this connection with a sample value in place, it seems to only see and find that sample value in the connection.

    I really appreciate both of you guys' help! Let me know what you think can be done!

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