If your customer is using AX 2009 and wanted wanted to compare the user accounts configured in AX with the user accounts in Active Directory. You can do it by the following process explained in details on "Dynamics AX In The Field Blog"
The Goals were the followings, to compare
- Find all AX user accounts that no longer exist in Active Directory.
- Find all accounts that are disabled in Active Directory but not in AX.