Getting firstname and lastname in Active Directory

Is it possible to get first name and last name in AD user sources? I was wondering if I could define sn , and givenName for the first name attribute. If I set the first name attribute to name and use the following code I only get last name.

users = system.user.getUsers(“adsource”)
for user in users:
name=user.get(user.FirstName)
print name

Using the onboard default User Source this script worked perfectly for me (all users returned and user.FirstName obtained their first name instead of their surname). I’ll ask around to see if we’d expect differently from an AD user source, but as of right now I’m not able to replicate the behavior…

I got it working with our AD using the following:

users = system.user.getUsers("adsource")
for user in users:
	first=user.get(user.FirstName)
	last=user.get(user.LastName)
	print first, last