Hello
To get all members of a group, including cross-domain membership within the same forest, you can use an LDAP query with the memberOf attribute. The memberOf attribute in Active Directory is stored as a list of distinguished names. Your filter should look something like this:
(& (objectCategory=user) (memberOf=cn=GroupName,ou=ouOfGroup,dc=subdomain,dc=domain,dc=com))
Replace GroupName, ouOfGroup, subdomain, domain, and com with the appropriate values for your environment.
If you don’t have a Global Catalog (GC) in your organization, you may not be able to get results from all subdomains with one query.
I hope this information helps you construct the LDAP query you need.