I have been able to enumerate Users, Groups and Group Members in Active Directory when I am logged in Administrator or Domain User in C#.
I would like to know which type of Users can read/query/search Active Directory objects. Do we need to make the user a member of a particular Group or Assign permissions to the user ?
Thanks!
You should not need administrator or any permission to query/search/read AD group membership. unless you have altered the default security. A normal user account should work fine, and user at least have the same group memberships. you can query your AD with no problems with a user account, you can run CMD or Powershell with the credentials of the user account and test some LDAP queries.
You can Follow this Document for LDAP query example.
Referennce :https://mcpmag.com/articles/2006/09/18/searching-active-directory-objects.aspx.