The code is from
Re: How to get the full username(displayname) from the AD Message #
984716. 2 years seems enough time to understand it. :)
The first parameter is the name of the user. If it's not supplied, currently logged use name is assumed.
lcUserName = "JohnDoe"
oUser = GetADUserInfo(lcUserName, .T.)
oUser.Put("Title", "Sr. Programmer/Analist")
oUser.SetInfo()
>
>Our application use the following procedure at start to get some infos about the current user.
>
<snip>
>
>I just copied it from an example file ! ;-)
>Everything works as expected, nevertheless i don't really understand it !!!
>
>Now i have to sync a SAP System with our application.
>I have a cursor with employeeids and some spezial infos from SAP and
>i need to find the ad infos for a given employeeid (not for the current logon user).
>
>I don't know how to handle this.
>Can someone give me an example, how to read the ad infos for a given employeeid ???????
>
>Any help welcomed
>Best regards
>Albert
--sb--