Ingroup() works on membership of a security group, are you talking about membership of an Organizational Unit (OU)?
A user can belong to 1 or more security groups, but can only belong to 1 OU.
There are many scripts available on this site, to return Active Directory information. Look for ones using GetObject(LDAP://RootDSE)
Regards,
Bill
_________________________
Bill