Directoryservices.accountmanagement

what is difference between
GroupPrincipal.GetMembers()
GroupPrincipal.GetMembers (true)
GroupPrincipal.GetMembers(false)
banu111Asked:
Who is Participating?
 
Paul JacksonConnect With a Mentor Software EngineerCommented:
GroupPrincipal.GetMembers(true) will search recursively and return nested group members, i.e. members of child groups.

GroupPrincipal.GetMembers(), GroupPrincipal.GetMembers(False) are the same and will only return members of the specified group (i.e. no recursive search of nested groups).
0
 
Paul JacksonSoftware EngineerCommented:
GroupPrincipal.GetMembers(), GroupPrincipal.GetMembers(False) will also return groups in the results whereas GroupPrincipal.GetMembers(true) will not
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.