Code for username&userdomain - InfoPath Dev
in

InfoPath Dev

Code for username&userdomain

Last post 11-29-2005 09:25 AM by tatopitta. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-29-2005 08:35 AM

    Code for username&userdomain

    Hi guys,
    here's my problem with my form library on a Sharepoint Site:
    I usually use this VBScript code to get username and userdomain:

    Set X = CreateObject("WScript.Network")
    user = X.UserName
    dom = X.UserDomain

    An user of mine in our subsidiary uses one account to log in the local computer (this is NOT in our domain) and another account (in our domain) to use Sharepoint (right-click on Explorer icon, then "Run As..."). The code above gives me the first account used to log in the computer and not that used to access sharepoint site. So, how can i get the second account used for sharepoint site?

    Thank u!
  • 11-29-2005 09:22 AM In reply to

    Re: Code for username&userdomain

    I once learned about this webservice called .../_vti_bin/UserProfileService.asmx - refer to this link to learn a little bit about ithttp://weblogs.asp.net/wkriebel/archive/2005/01/24/359669.aspx

    Have not used it before but know it was out there.
    Jason
    http://www.k2distillery.com/
  • 11-29-2005 09:25 AM In reply to

    Re: Code for username&userdomain

    Thank u, I'll let you know :)
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.