TL;DR: Active Directory migration fails when teams treat one OU as the whole scope, because users, groups, contacts and managers often live elsewhere and must be matched deliberately, according to AvePoint. Directory migration only works when object relationships, default containers and downstream permissions are planned together.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on AvePoint's blog post: Active Directory domain migration must be planned as relationship mapping, not simple object copying, because scope, matching and dependencies determine whether identities work after the move.
Why it matters: Identity and access teams need to treat directory migration as a governance exercise because incomplete matching or relationship discovery can break permissions, downstream collaboration and AI access tied to the directory.
Context
An Active Directory migration is not a bulk copy exercise. The hard part is deciding which objects belong in scope, how they should be matched, and which relationships must survive after the move.
Discovery has to extend beyond the first branch selected because users, groups, contacts and managers may be distributed across different locations. Default containers also need separate review because built-in objects and manually created objects do not follow the same migration rules.
NHI lifecycle management matters here because migration is really a lifecycle event for identities and their relationships, not just a directory restructuring task.
Key questions
Q: How do you scope an Active Directory migration beyond one OU?
A: Scope it by the identity dependencies around the OU, not just the objects inside it. Map users, groups, computers, service accounts, ACLs, GPO links, app bindings, and delegated admin paths, then follow business relationships to shared resources and downstream groups so nothing breaks when the target OU is cut over.
Q: Why do group memberships fail after directory migration?
A: Group memberships fail when the migration misses nested groups, source and target group type rules, or the ordering of object moves. They also fail if dependency discovery and destination readiness are incomplete, because membership references, SID-based permissions, and replication timing can leave a group pointing at objects that are not yet usable in the target directory.
Q: How should teams handle ambiguous identity matches in directory migration?
A: Resolve ambiguous identity matches by using deterministic matching rules, such as employee number, source object GUID, UPN, and verified manager or department data, rather than display name alone. Every ambiguous identity matches case should be queued for manual review, because a wrong link can merge accounts, move entitlements, or orphan an identity during migration.
Q: What should teams check before enabling SID history in AD migration?
A: Check every ACL, group nesting, application dependency, and legacy access path that will rely on SID history before turning it on. You should also verify the migration scope, the rollback plan, and how long SID history will remain enabled, because it preserves access through old SIDs and can widen the blast radius if stale permissions are left in place.
Technical breakdown
OU scope is not migration scope
An organisational unit defines a branch in the directory, but it does not guarantee that every related identity object sits inside that branch. Users, groups, contacts and managers can be separated across OUs, default containers and existing destination objects. A migration plan therefore has to follow identity relationships rather than assume that a single tree branch contains the complete business unit. If discovery stops too early, the migration can appear structurally complete while leaving critical relationships unresolved. See the Directory service (LDAP and Active Directory) rollout playbook.
Practical implication: Map the business relationship graph before cutover so discovery includes every dependent object, not just the first OU selected.
Attribute matching must resolve identity, not just names
Directory migration tools typically evaluate attributes in sequence and only create a new object when no match is found. That sounds mechanical, but it is a governance decision: a matching rule can merge the wrong identities if the chosen attribute is too broad, or split a real identity if the source and destination values diverge. When multiple possible matches appear, pausing for review is safer than forcing an automated assumption. Saved identifiers can help later runs stay consistent, but they do not validate the first decision. See the Active Directory Domain and Forest Migration Security Guide.
Practical implication: Review match logic against live source and destination data before the first production wave and require manual review for ambiguous matches.
Relationship migration depends on destination readiness
Membership and manager relationships are not portable unless the related objects already exist in the destination and were included in discovery. That means a group can migrate cleanly while still missing members, or a user can land successfully while manager links fail. Password handling and SID history add another layer because a newly created account may still be unusable unless authentication or legacy resource access is explicitly prepared. The technical issue is sequencing: object creation, relationship recreation and access continuity are separate steps.
Practical implication: Sequence object migration, dependency discovery and access testing as distinct workstreams instead of treating them as one execution step.
Threat narrative
Attacker objective: The practical objective is not theft but governance failure: to leave users with broken, misrouted or overextended access after directory migration.
- Entry occurs through incomplete migration scope when discovery stops at one OU and misses related identities elsewhere in the directory.
- Credential or access continuity breaks when matching rules, password handling or SID history are not prepared before migration.
- Escalation appears as incomplete group membership or manager relationships propagate into downstream permissions and application access.
- Impact is misconfigured access in connected Microsoft 365, hybrid identity and AI agent environments that consume the migrated directory relationships.
Breaches seen in the wild
- Cisco Active Directory credentials leak 2025: Kraken leaked Cisco Active Directory hashes, including service and krbtgt accounts; Cisco says they came from its 2022 breach, not a new one.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Directory migration is a governance exercise before it is a technical transfer. The article shows that scope, matching and relationship validation determine whether identities remain trustworthy after the move. That is the same control problem NHIs create at scale: the object is not enough, the relationship is what makes access usable. Practitioners should treat the directory graph as the real migration unit, not the OU tree.
Identity continuity fails when migration assumes object equality. A user account, a group and a contact can all exist in the destination while still being functionally incomplete because memberships, managers or password state are missing. That is a familiar failure mode in identity lifecycle management: creation without lifecycle completion produces accounts that look migrated but do not behave migrated. The implication is that acceptance criteria must prove relationship integrity, not just object existence.
Default containers are governance exceptions, not implementation details. Built-in and manually created objects do not share the same migration eligibility, so the destination directory has to be checked container by container. That matters because overgeneralising from a selected branch creates false confidence about what will move, what will be skipped and what will silently lose context. Practitioners should expect the exception path to matter as much as the primary path.
Relationship drift: Directory migration changes how access is expressed downstream, including permissions used by Microsoft 365 apps and connected AI agents. The migration therefore reaches beyond directory administration into the systems that consume directory state. A clean cutover that misses relationship fidelity can still leave collaboration tools or automated agents with the wrong view of who can see what. The implication is that migration validation must include downstream consumers, not just the directory itself.
From our research library:
- Only 5.7% of organisations have full visibility into their service accounts, according to the Ultimate Guide to NHIs.
- Read next: NHI Lifecycle Management Guide
What this signals
Directory migration is increasingly a downstream control for cloud access, not just a legacy domain task. When memberships and managers feed Microsoft 365 and AI agents, the quality of the migration determines the quality of the authorisation state those systems inherit.
Relationship fidelity: the real control objective is preserving the business relationships that make identities useful after cutover. If that fidelity is missing, a successful technical migration can still leave collaboration, task assignment and access decisions wrong.
Teams should expect discovery to expand beyond directory branches and into dependent systems. That shifts migration from a one-time project milestone into a validation discipline that has to be repeated across pilot, wave and post-cutover checks.
For practitioners
- Model identity relationships before scope discovery Map users, groups, contacts and managers as a dependency graph before you select migration boundaries, so discovery follows relationships outside the first OU.
- Test match rules against live source and destination data Validate the attribute sequence, explicit mappings and conflict handling with representative objects before production, especially where multiple possible matches exist.
- Separate default container review from branch migration Check Computer, System, Builtin and Users containers independently, because built-in objects and manually created objects do not share the same eligibility rules.
- Treat password and SID history as planned dependencies Set password sync and SID-history requirements before the first run, and verify the source scan, destination agent and RPC prerequisites as part of pilot readiness.
- Validate downstream permissions after cutover Confirm that memberships, task assignments, file attribution and application permissions still resolve correctly in Microsoft 365 and hybrid identity systems after the migration.
Key takeaways
- Active Directory migration succeeds or fails on relationship handling, not on how many objects are copied.
- Discovery must include objects, containers and dependencies outside the first OU if the destination is to function correctly.
- Password, SID history and downstream permission checks are part of the migration design, not post-migration cleanup.
Related NHI Mgmt Group resources: Active Directory Domain and Forest Migration Security Guide · NHI Lifecycle Management Guide · Active Directory and Entra ID Hardening Guide · Directory service (LDAP and Active Directory) rollout playbook
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-01 — Improper Offboarding | Directory migration is a lifecycle event where stale relationships and incomplete cutover can leave identities in the wrong state. |
| Recommendation — Validate identity offboarding and migration cutover together so obsolete directory relationships do not survive the move. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article centers on preserving entitlements and authorizations during directory migration. |
| Recommendation — Verify that migrated users, groups and managers still resolve to the intended permissions after each wave. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Password sync and SID-history handling are credential continuity decisions in the migration plan. |
| Recommendation — Plan authenticator continuity before cutover and confirm that migrated identities remain usable after the move. | ||
| MITRE ATT&CK | TA0006;TA0008 — Credential Access; Lateral Movement | Incomplete directory migration can propagate incorrect access across connected systems and downstream privileges. |
| Recommendation — Map broken migration dependencies to credential access and lateral movement paths in connected environments. | ||
Key terms
- Active Directory Migration: Active Directory migration is the process of moving users, groups, computers, policies, and permissions from one directory environment to another. In practice, it requires careful preservation of identity mappings, Group Policy, authentication paths, and access controls so that human and non-human identities keep working securely during and after the transition.
- Attribute Matching: Attribute matching is the process of comparing identity or record fields to decide whether two entries represent the same thing. In directory and data migration, it uses values such as name, email, employee number, or object GUIDs, and the quality of the chosen attributes determines how reliably duplicates, merges, or conflicts are resolved.
- Default Container: The default container is the built-in directory location where new objects are created when no other placement is specified. In Active Directory, it is often the Users or Computers container, and misplacement there can complicate delegation, policy application, and migration planning.
- Manager Relationship: A manager relationship is the directory link that records who manages a user or other identity object. It is used for reporting chains, approval workflows, and access reviews, and in migrations it can affect target placement, delegated administration, and inherited business metadata.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org