GroupPrincipal.GetMembers(true) recursive – Was a person in original group or a nested group
using (var pc = new PrincipalContext(ContextType.Domain, ADDomain)) { using (var gp = GroupPrincipal.FindByIdentity(pc, identity)) { if (gp != null) { var members = gp.GetMembers(true); foreach (var item in members) { /* * Handle the member but i need info if the memeber comes from the original group or a nested one and if its from […]