How to get username? - InfoPath Dev
in

InfoPath Dev

How to get username?

Last post 09-27-2010 01:38 PM by Ted Fitch. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-27-2010 06:55 AM

    How to get username?

    Hi!

    I am working with a InfoPath project and the form will be deployed to SharePoint.

    I want to prefil some fields amoung them a Username which I wonder if I can use User.Identity.Name (as I used to with .NET and ASPX) to get the user's name.

    Is it the proper way to get this value with InfoPath 2007?

  • 09-27-2010 01:38 PM In reply to

    Hi,

    I think you might find that using our Active Directory Web Service (ADWS) is an easy way to do this and will give you much more informaition than you can get using the contact selector in InfoPath 2007.  The contact selector in InfoPath 2007 only returns the logged in users's alias and name from the SharePoint user list.  If the user is not in SharePoint yet (hasn't gone to the site) then their alias may not show up (this is an issue for example if you need to assign the form to someone who hasn't logged into the SharePoint site ever but is still a user on your Domain).

    ADWS allows you full access to your GAL in your forms for capturing both the currently logged in user and also allows you to search for users in your domain for workflow purposes.

    Information about ADWS is here: http://www.qdabra.com/en/products/ADWebService.aspx

    Ted

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