[RESOLVED] Looking up User by Full Name (in AD)
This is probably a simple question.. but I can't find how to look up a user in AD by their full name and return their ID. I can only find the reverse, such as:
Code:
Dim oUser As Object
Set oUser = GetObject("WinNT://domain/UserName")
MsgBox oUser.Fullname
What if I essentially wanted to do
Code:
Set oUser = GetObject("WinNT://domain/Full Name")
?
Obviously that doesn't work, but can anyone tell me the format that will work? Thanks :wave:
Re: Looking up User by Full Name (in AD)
Re: Looking up User by Full Name (in AD)
AD: Active Directory
See if this helps...
look at the last post by Nitrous270
Re: Looking up User by Full Name (in AD)
Thanks Koolsid, that worked! :D