Hi all,
I'm preparing the cutover of a tenant-to-tenant migration and would like a sanity check on my approach for group provisioning to on-premises AD. Thanks in advance.
CURRENT STATE
- One AD DS forest, currently connected to tenant A (contoso.com).
- Entra Connect Sync handles user sync and PHS for tenant A.
- Entra Cloud Sync (Entra ID to AD) provisions 10 cloud-created dynamic security groups (about 200 members each group and 1 of them 30k+ in total) to an on-premises OU. They are written as Universal groups, and on-premises permissions (file shares, apps) reference their SIDs.
- A new tenant B (fabrikam.com) is receiving users and groups from tenant A through inter-tenant synchronization. At cutover, the AD forest will be connected to tenant B, and the domain/UPN suffix changes (contoso.com to fabrikam.com).
GOAL
After cutover, tenant B's Cloud Sync must keep updating the SAME 10 AD groups (same SID, same objectGUID, same members), with no duplicates and no new objects.
MY PLAN
- Before enabling anything in tenant B, update msDS-ExternalDirectoryObjectId on each of the 10 AD groups so it points to the objectId of the matching tenant B group (mapping built by group name, by PowerShell).
- Disable the Cloud Sync "Entra ID to AD" configuration in tenant A (not delete it, and keep the groups in its scope).
- In tenant B, create a Cloud Sync configuration with "Selected security groups" scoped to ONE group first. Use provision on demand, then enable, then check in AD: same SID, same objectGUID, same DN, same members, no new group object.
- If all good, add the 9 remaining groups.
- Safety nets: JSON backup of the 10 groups (attributes and members), AD Recycle Bin enabled, rollback script to restore attributes.
- Pre-cutover test: a new test group in tenant B plus a pre-existing test AD group "taken over" in a test OU.
QUESTIONS
- Is updating msDS-ExternalDirectoryObjectId the correct and supported way for a different tenant's Cloud Sync to take over existing AD groups in place? What exact value format is expected (bare objectId, or with a prefix such as "Group_")? How can I check the format in use today?
- If the value does not match, what does Cloud Sync do (create a new group, rename, error)?
- What happens in AD to groups already provisioned by tenant A when its Cloud Sync configuration is disabled, or later deleted? Are they deleted, left alone, or "orphaned"? Is there a risk that two tenants' configurations act on the same group during the transition?
- CN / target OU: Cloud Sync's default CN mapping uses displayName plus part of the objectId. Is it safe to keep the existing CN and OU, so that DN does not change? Does a DN change break anything?
- Group membership: members must have onPremisesObjectIdentifier set in tenant B. If users are rattached to AD only after the AD is connected to tenant B, what happens to group membership at the first provisioning cycle (are members removed from the AD groups)?
- Any known pitfalls with AD group enforcement (msDS-ObjectSoa) or agent registration when moving from tenant A to tenant B (one agent per tenant?)
- Is this scenario documented anywhere? I only found the Connect Sync group writeback V2 to Cloud Sync migration guide, which is intra-tenant.
Any feedback, links or experience from similar migrations would be very appreciated.