In order to validate the user from Active Directory, we need to use LDAP. want to list all the user's from current domain, then you can use DirectoryEntry class. If you want to get the user names with their respective groups, then you need to .