I am trying to find a objectCategory query that will return all the "users" in my active directory.
I thought this would be as simple as (objectCategory=user)
. And while that does return the bulk of my users, it does not return them all.
I have some Group Managed Service Accounts (gMSA) in my Active Directory. They have the objectCategory of msDS-GroupManagedServiceAccount. When I look up msDS-GroupManagedServiceAccount it indicates that it has fields derived from user.
That leads me to to believe that msDS-GroupManagedServiceAccount is a subclass of user. Which leads to my question:
Is there a way to indicate that I want all objects that are of objectCategory user AND all objects that descend from objectCategory user?
objectClass
match? That would work, as all parent classes are present too. – user207421