Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2005

Tip: Looking for answers? Try searching our database.

Get logon user information in InfoPath.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
puvat@hotmail.com - 17 Aug 2005 21:15 GMT
I am looking for a function or vbscript code sample to get and store
domain\username in an Infopath form field. The form is created from a
template in Sharepoint Services, and all users are authenticated in SS
using domain\username.

Thanks in advance

Anna
Patrick Halstead [InfoPath MVP] - 18 Aug 2005 01:18 GMT
Hi Anna,
You can use Environment.Username to get username. Getting Domain, however,
will require special Environment permissions (if you are using .NET). I
would suggest using an Active Directory Web service to get the data. Here's
an example of one (ours) that will do what you need:
http://www.infopathdev.com/webstore/detail.aspx?itemid=18
Regards,
Patrick

> I am looking for a function or vbscript code sample to get and store
> domain\username in an Infopath form field. The form is created from a
[quoted text clipped - 4 lines]
>
> Anna
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.