Inconsistent User Info From GetUserProfileByName - InfoPath Dev
in

InfoPath Dev

Inconsistent User Info From GetUserProfileByName

Last post 08-15-2011 05:14 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-10-2011 04:08 PM

    • RKEMN2
    • Not Ranked
    • Joined on 03-25-2011
    • Posts 9

    Inconsistent User Info From GetUserProfileByName

    I’ve got an InfoPath 2010 form hosted in SharePoint 2010 that displays an incorrect identity in a People Picker depending on which environment it is published. The People Picker is populated using the GetUserProfileByName method of the UserProfileService web service and I am not specifying the username (relying on the default to pick up the current user). The Username() function correctly displays my logged in username in a separate form field. This works correctly in my development installation of SharePoint and in previous deployments, but currently the published form is showing a server identity (SharepointSQLService) rather than my AD username. It is a browser-enabled form with security set to Domain. 

    Any ideas why a different identity is being used for UserProfileService web service?

  • 08-15-2011 05:14 PM In reply to

    Re: Inconsistent User Info From GetUserProfileByName

    For historic reasons, the Username() function returns the local username. When published to the browser, this no longer makes sense since the logged in user is the server account. Please use UserProfileService to get the user name. Or, you can install a third-party Active Directory Web Service, such as Qdabra's ADWS which has more functionality and is easier to use.

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