User1106517602 posted
I'm pretty new to AD functionality too but, in the future, it might help you get more replies if you do a bit more work up front. There are MANY posts on this forum alone about how to retrieve data from AD. I had to do some hunting and I found what I needed
right here. If you have a problem implementing/modifying/understanding some code you found, post specific questions and I'm sure you'll get more replies.