Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 08, 2012 08:38 PM by mavrick_101
May 07, 2012 08:01 PM|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 08:22 AM|LINK
You can check either objectCategory or objectClass property of the object to see if it is group.
May 08, 2012 06:40 PM|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 08:38 PM|LINK
ObjectClass, ObjectCategory would be the solution.