First you need to find out primaryGroupToken from the Group object. If you use ADSIEdit, you need to make sure that you have a "Constructed" filter to see this computed attribute. For domain users, primaryGroupToken must be 513.
Then you need to find all users with primaryGroupID set to this value. Here is the ldap request that you must write in order to find out all users with Domain Users defined as the primary group.
(&(objectCategory=person)(objectClass=user)(primaryGroupID=513))
EDIT
Below are the steps to show primaryGroupToken in an LDAP browser. I am using LDAP browser 2.6 build 650. Right click on your profile and click on Properties

Go to the "LDAP Settings" tab and click on the "Advanced" button.

Add optional operational attribute primaryGroupToken
Click the Apply button and close the properties page. You should now see primaryGroupToken in your group object.

source share