Environment.UserName - InfoPath Dev
in

InfoPath Dev

Environment.UserName

Last post 03-03-2011 12:35 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-03-2011 12:19 PM

    • steve
    • Not Ranked
    • Joined on 01-25-2008
    • Posts 6

    Environment.UserName

    Long ago somebody on our team developed a bunch of InfoPath forms that used the following code to figure out who the user is: somevariable = Environment.UserName works and is simple, but causes a lot of security issues depending on how the user's pc is setup. Also makes it necessary to add the URL to IE security. Now these forms have to be changed for a much-delayed migration to SharePoint 2007. Is there a better way to figure out the user information that's both not too complicated and doesn't require full-trust? the code was developed using Visual Studio and VB. any guidance would be much appreciated! thanks
    steve
  • 03-03-2011 12:35 PM In reply to

    Remove the code and just use the xpath username() function that was new in InfoPAth 2007.

    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.