Topic: Returing a user's groups from Active Directory Posted: 17 Jul 2008 at 7:42am
Hi there,
I have recently connected Crystal Reports XI to AD 2003. I am able to pull back a user's data like sAMAccountName, givenName etc etc.
However i am unable to pull back the groups that a user is assigned to. I am thinking this might be because they have multiple groups assigned to them?
Here is the code i am using to select and return the data for name etc:
SELECT sAMAccountName, givenName, sapuserName FROM 'LDAP://OU=User Accounts,DC=company,DC=com' WHERE objectClass='user' AND objectCategory='Person'
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum