Lookup User Manager Name based on Login Name

TerribadCoder

Registered User.
Local time
Today, 03:41
Joined
Mar 8, 2014
Messages
20
The code is easily modified to return other attributes by changing the fields returned by the command and the assignment to the returned string.

However, Active Directory holds some attributes such as Group memberships as multivalue fields. This adds further complexity to to the task. I have the code to return group memberships too if anyone is interested but I would like to tidy it up and test it before posting.

Starting a new thread on this as it's slightly different. I'm pulling in the manager field from AD hoping it would display just the manager name, but am getting a bunch of extra fields. I think this is what Galaxiom was speaking of when referring to a multivalue field. Is there any way to pull just the first and last name of the manager? Even better if in givenName and SN format ~ Thanks a bunch!
 

Users who are viewing this thread

Back
Top Bottom