I've tried this a couple of different ways, but I can't seem to get rid of duplicate objects in a collection of ADUserInfo objects.
As a background, I am looking at AD groups that have access to a particular folder. I'm then using the For Each Item in Collection component to go through each of those AD groups and add ADUserInfo objects into a collection. (Note that some users are members of 2 groups that have access).
Once I have that big list of users, I try to run that collection through the Test Collection for Duplicates component, but that component always returns false like there are no duplicates, instead of true and dumping the distinct values list to another variable.
I've even tried re-creating the logic that component most likely uses by doing another For Each Element in Collection component then using the "Item Is In Collection" component to check for duplicates that way.. ie. first pass it adds John Doe to the empty collection; second pass it should see John Doe in the collection and not add him again. Unfortunately, it does add him again.
Am I doing something wrong? Is there something unique between these ADUserInfo components even though they're duplicates?