--- title: "Synchronize domain users to Microsoft 365" f1.keywords: - NOCSH ms.author: frankroj author: frankroj manager: scotv ms.date: 04/23/2026 audience: Admin ms.topic: article ms.service: microsoft-365-business ms.localizationpriority: medium ms.collection: - Tier2 - scotvorg - M365-subscription-management - Adm_TOC - must-keep - operations-pod ms.custom: - Adm_O365 - Core_O365Admin_Migration - MiniMaven - MSB365 - OKR_SMB_M365 - seo-marvel-mar - AdminSurgePortfolio - identity-models search.appverid: - BCS160 - MET150 - MOE150 description: "Synchronize domain-controlled users with Microsoft 365 for business." --- # Synchronize domain users to Microsoft 365 ## 1. Prepare for Directory Synchronization Before you synchronize your users and computers from the local Active Directory Domain, review [Prepare for directory synchronization to Microsoft 365](../../enterprise/prepare-for-directory-synchronization.md). In particular: - Make sure that no duplicates exist in your directory for the following attributes: **mail**, **proxyAddresses**, and **userPrincipalName**. These values must be unique and any duplicates must be removed. - We recommend that you configure the **userPrincipalName** (UPN) attribute for each local user account to match the primary email address that corresponds to the licensed Microsoft 365 user. For example: *mary.shelley@contoso.com* rather than *mary@contoso.local*. - If the Active Directory domain ends in a non-routable suffix like *.local* or *.lan*, instead of an internet routable suffix such as *.com* or *.org*, adjust the UPN suffix of the local user accounts first as described in [Prepare a non-routable domain for directory synchronization](../../enterprise/prepare-a-non-routable-domain-for-directory-synchronization.md). The **Run IdFix** in the following steps makes sure that your on-premises Active Directory is ready for directory synchronization. ## 2. Install and configure Microsoft Entra Connect To synchronize your users, groups, and contacts from the local Active Directory into Microsoft Entra ID, install Microsoft Entra Connect and set up directory synchronization. 1. In the [admin center](https://go.microsoft.com/fwlink/p/?linkid=2024339), select **Setup** in the left nav. 2. Under **Sign-in and security**, select **Add or sync users to Microsoft Entra ID**. 3. On the **Add or sync users to your Microsoft account** page, choose **Get started**. 4. In the first step run IdFix tool to prepare for Directory sync. 5. Follow the wizard steps to download Microsoft Entra Connect and use it to synchronize your domain-controlled users to Microsoft 365. See [Set up directory synchronization for Microsoft 365](../../enterprise/set-up-directory-synchronization.md) to learn more. As you configure your options for Microsoft Entra Connect, we recommend that you enable **Password Synchronization**, **Seamless Single Sign-On**, and the **password writeback** feature, which is also supported in Microsoft 365 for business. > [!NOTE] > There are some additional steps for password writeback beyond the check box in Microsoft Entra Connect. For more information, see [How-to: configure password writeback](/azure/active-directory/authentication/howto-sspr-writeback). If you also want to manage domain-joined Windows 10 devices, see [Enable domain-joined Windows 10 devices to be managed by Microsoft 365 Business Premium](../../business-premium/m365bp-manage-windows-devices.md) to set up a Microsoft Entra hybrid join.