Last post May 08, 2012 04:38 PM by mavrick_101
May 07, 2012 04:01 PM|mavrick_101|LINK
I have a situation where I need to get all members of a group. I have successfully done this, but now there might be a scenario where another group might be member of the original group and hence I would also need to grab users of this child group.
During traversing, how can I check if the item is a user or a group?
Thanks for your help!
May 08, 2012 04:22 AM|kushal.dwivedi|LINK
You can check either objectCategory or objectClass property of the object to see if it is group.
May 08, 2012 02:40 PM|gww|LINK
You could check for samaccounttype. 805306368 should be for users. Just declare each entry in the memberof list as a diretoryentry and load that property to check it.
May 08, 2012 04:38 PM|mavrick_101|LINK
ObjectClass, ObjectCategory would be the solution.