Skip to content

Commit f30b5f0

Browse files
authored
Merge pull request #10487 from Yupiter2005/Payur-CM-ADGroupDiscovery-20260106
AB#9082: External publishing of CI 207789
2 parents 3b7b60d + 76aaaed commit f30b5f0

2 files changed

Lines changed: 92 additions & 1 deletion

File tree

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
title: Delta AD Group Discovery Doesn't Detect Group Membership Changes in Nested OUs
3+
description: Troubleshoot an issue in which the delta discovery process of AD Group Discovery doesn't detect group membership changes in child organizational units.
4+
ms.date: 01/12/2025
5+
ms.reviewer: kaushika, jarrettr, brianhun, payur
6+
ms.custom: sap:Boundary Groups, Discovery and Collections\Active Directory Discovery (all types)
7+
appliesto:
8+
- <a href=https://learn.microsoft.com/lifecycle/products/microsoft-configuration-manager target=_blank>Supported versions of Configuration Manager</a>
9+
---
10+
# Delta AD Group Discovery doesn't detect group membership changes in nested OUs
11+
12+
## Summary
13+
14+
Active Directory Group Discovery (AD Group Discovery) in Configuration Manager uses different algorithms for delta and full discovery cycles. During the delta discovery process, Configuration Manager might miss group membership changes when groups belong to nested OUs within your discovery scopes.
15+
16+
This article helps you identify this issue in your environment, and provides workarounds to make sure that Configuration Manager detects all group membership changes.
17+
18+
## Symptoms
19+
20+
You set up discovery scopes for AD Group Discovery to target specific Active Directory Domain Services (AD DS) groups, as described in [Configure Active Directory Group Discovery](/intune/configmgr/core/servers/deploy/configure/configure-discovery-methods#bkmk_config-adgd). The initial full discovery cycle correctly discovers groups in all the in-scope OUs.
21+
22+
Some time after the initial full discovery cycle finishes, you change the membership of a group that belongs to a child OU of another OU. After the delta discovery cycle runs, you notice that Configuration Manager didn't detect your changes. However, if you force a full discovery cycle to run, the issue resolves as the full discovery cycle discovers changes in all groups in the in-scope OUs.
23+
24+
In particular, the issue occurs when you define scopes that resemble the following example:
25+
26+
- **Scope A:** Group A, in organizational unit OU-A
27+
- **Scope B:** Group B, in organizational unit OU-B
28+
- OU-B is a child OU of OU-A
29+
30+
In this example, the delta cycle of AD Group Discovery doesn't detect changes in Group B's membership.
31+
32+
If you want to review log entries to verify this behavior in your system, see [More information](#more-information).
33+
34+
## Cause
35+
36+
During the delta cycle of AD Group Discovery, Configuration Manager identifies the target groups in the discovery scopes, and the OUs to which those groups belong. It builds a tree structure of those OUs. However, that tree doesn't include any child OUs of those OUs.
37+
38+
During the full discovery cycle of AD Group Discovery, Configuration Manager uses a different algorithm that doesn't ignore child OUs. Therefore, the discovery process works as expected.
39+
40+
## Workaround
41+
42+
Microsoft is aware of this issue. To work around this issue, use any of the following methods:
43+
44+
- Move the affected groups to higher-level OUs. For the earlier example, this action means moving Group B to another OU that isn't a child of OU-A (or of any other OU in the discovery scopes).
45+
- Reconfigure the discovery scopes to include the child OUs as target OUs. For the previous example, this action means including OU-B in the discovery scopes as an Organizational Unit.
46+
- Use only the full discovery process for AD Group Discovery.
47+
48+
## More information
49+
50+
To see what this behavior looks like in the ADSGDis.log file, follow these steps:
51+
52+
1. Open ADSGDis.log in a tool such as [CMTrace](/intune/configmgr/core/support/cmtrace), and then review the log entries to identify any discovery cycle.
53+
1. For that discovery cycle, create a list of the discovery scopes that appear in the log entries.
54+
1. Verify the Lightweight Directory Access Protocol (LDAP) path of each scope. In particular, check that the affected group is in a child OU of another one in the list. In the example that this article uses, the scopes and paths resemble the following example:
55+
56+
```output
57+
!!!!Valid Search Scope Name: Unaffected Group Search Path: LDAP://CN=GROUP-A,OU=OU-A,DC=FOURTHCOFFEE,DC=COM IsValidPath: TRUE
58+
!!!!Valid Search Scope Name: Affected Group Search Path: LDAP://CN=GROUP-B,OU=OU-B,OU=OU-A,DC=FOURTHCOFFEE,DC=COM IsValidPath: TRUE
59+
```
60+
61+
1. Review the log entries to identify any delta discovery cycle. Look for an entry that resembles the following example, and then use the thread ID to filter log entries.
62+
63+
```output
64+
INFO: CADSource::incrementalSync returning 0x00000000~
65+
```
66+
67+
1. Review the log entries for the delta discovery cycle. The entries should resemble the following examples:
68+
69+
1. Delta discovery processes the list of scopes.
70+
71+
```output
72+
INFO: -------- Starting to process search scope (Unaffected Group) --------
73+
INFO: -------- Finished to process search scope (Unaffected Group) --------
74+
INFO: -------- Starting to process search scope (Affected Group) --------
75+
INFO: -------- Finished to process search scope (Affected Group) --------
76+
```
77+
78+
1. Delta discovery processes the LDAP search paths, starting at `immediate search base`.
79+
80+
```output
81+
INFO: -------- Starting to process search scope (Immediate search base) --------
82+
INFO: Processing search path: 'LDAP://OU=OU-A,DC=FOURTHCOFFEE,DC=COM'.~
83+
```
84+
85+
1. Delta discovery identifies the search path for the child OU (OU-B in the example) as an invalid path, and skips it to process the next path.
86+
87+
```output
88+
INFO: Found invalid Search Path: LDAP://OU=OU-B,OU=OU-A,DC=FOURTHCOFFEE,DC=COM. Probably it's sub search path of other search path and will be covered by them.
89+
INFO: -------- Finished to process search scope (Immediate search base) --------
90+
```

support/mem/configmgr/toc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ items:
7272
items:
7373
- name: Console appears to hang when loading drivers
7474
href: console-management/console-stops-responding.md
75-
7675
- name: Issues after installing June 2022 Windows security updates
7776
href: console-management/dcom-hardening-change-effect.md
7877
- name: No data in the Windows 10 servicing dashboard
@@ -135,6 +134,8 @@ items:
135134
href: diagnostics/failed-devices-client-health-dashboard.md
136135
- name: Discovery
137136
items:
137+
- name: Delta AD Group Discovery doesn't detect group membership changes in nested OUs
138+
href: discovery/ad-group-not-discovered.md
138139
- name: lastLogonTimestamp isn't updated as expected
139140
href: discovery/lastlogontimestamp-not-accurate.md
140141
- name: Resource domain is changed after installing Windows updates

0 commit comments

Comments
 (0)