Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting "friendly" user name

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
Hi everyone

How do I go about getting the "friendly" username of the currently logged in user? I am using Windows Authentication - so I can get the username of the currently logged in user i.e DOMAIN\USER. I want to get the name associated with that user .... so if I get MYDOMAIN\JoeB - I want to be able to get "Joe Bloggs" (hope that made sense!).

Any help would be much appreciated!

Thanks as always!

Craftor
:cool:
 
I guess you will have to use that user name to query the repository of other NT domain users for the rest of the information. That may be what you have to figure out...I am sure there is an API out there to do it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top