<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Azure AD Connect | KC's Blog</title>
	<atom:link href="https://www.kjctech.net/tag/azure-ad-connect/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kjctech.net</link>
	<description></description>
	<lastBuildDate>Sun, 21 May 2023 07:07:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://i0.wp.com/www.kjctech.net/wp-content/uploads/2016/12/cropped-KC-Logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>Azure AD Connect | KC's Blog</title>
	<link>https://www.kjctech.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">24634607</site>	<item>
		<title>Configuring Azure Active Directory Single Sign-On (SSO) with Azure AD Connect</title>
		<link>https://www.kjctech.net/configuring-azure-active-directory-single-sign-on-sso-with-azure-ad-connect/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configuring-azure-active-directory-single-sign-on-sso-with-azure-ad-connect</link>
					<comments>https://www.kjctech.net/configuring-azure-active-directory-single-sign-on-sso-with-azure-ad-connect/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Mon, 17 Jan 2022 07:06:47 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Azure AD Connect]]></category>
		<category><![CDATA[SSO]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4710</guid>

					<description><![CDATA[<p>If you haven&#8217;t synced your local Active Directory to Microsoft 365 via Azure Cloud Connect, you can start here. If you have but haven&#8217;t enabled SSO to simplify the process, you are missing out on something big. With Azure AD SSO, you don&#8217;t have to type in your passwords to sign in to Azure AD, and most of the time, [&#8230;]</p>
The post <a href="https://www.kjctech.net/configuring-azure-active-directory-single-sign-on-sso-with-azure-ad-connect/">Configuring Azure Active Directory Single Sign-On (SSO) with Azure AD Connect</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>If you haven&#8217;t synced your local Active Directory to Microsoft 365 via Azure Cloud Connect, you can start <a href="https://www.kjctech.net/setting-up-directory-sync-between-on-premises-active-directory-with-microsoft-365-azure-ad/" title="here" target="_blank" rel="noreferrer noopener">here</a>. If you have but haven&#8217;t enabled SSO to simplify the process, you are missing out on something big.</p>



<p>With Azure AD SSO, you don&#8217;t have to type in your passwords to sign in to Azure AD, and most of the time, you don&#8217;t even need to type the username. You log into a domain-joined computer with your own credential and that&#8217;s all you need to get all apps ready, including Edge, Office apps, and Teams.</p>



<p>Open Azure AD Connect, click <strong>Configure,</strong> then <strong>Change user sign-in</strong> option, and go Next.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="600" height="416" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/01/image-4-600x416.png" alt="" class="wp-image-4711" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?resize=600%2C416&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?resize=450%2C312&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?resize=250%2C173&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?resize=700%2C486&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?resize=520%2C361&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?resize=360%2C250&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?resize=100%2C69&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-4.png?w=715&amp;ssl=1 715w" sizes="(max-width: 600px) 100vw, 600px" /></figure>



<p>Sign in with your Office 365 Global Admin credential, and then check <strong>Enable single sign-on</strong> option.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="600" height="246" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/01/image-5-600x246.png" alt="" class="wp-image-4712" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=600%2C246&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=450%2C185&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=250%2C103&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=768%2C315&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=700%2C287&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=520%2C214&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=360%2C148&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?resize=100%2C41&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-5.png?w=879&amp;ssl=1 879w" sizes="(max-width: 600px) 100vw, 600px" /></figure>



<p>You will need to type a Domain Admin credential as well to finish the process.</p>



<p>Once the sync is finished, you can check the Azure AD to make sure if the single sign-on is enabled.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="600" height="259" src="//i0.wp.com/kjctech.net/wp-content/uploads/2022/01/image-6-600x259.png" alt="" class="wp-image-4713" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=600%2C259&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=450%2C194&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=250%2C108&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=768%2C332&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=700%2C302&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=520%2C224&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=360%2C155&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?resize=100%2C43&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2022/01/image-6.png?w=871&amp;ssl=1 871w" sizes="(max-width: 600px) 100vw, 600px" /></figure>



<p>Next step is to add the following URL in the Intranet Zone via Group Policy.</p>



<pre class="wp-block-preformatted"><code>https://autologon.microsoftazuread-sso.com</code></pre>



<p>The policy is called <strong>Site to Zone Assignment list </strong>under</p>



<pre class="wp-block-preformatted">User Configuration > Policies > Administrative Templates > Windows Components > Internet Explorer > Internet Control Panel > Security Page</pre>



<p>While we are here, let&#8217;s also enable <strong>Allow updates to status bar via script</strong> under <strong>Intranet Zone</strong></p>



<p>Finally, if you are using the new Edge browser, add the same Azure AD&#8217;s URL to the <strong>Specifies a list of servers that Microsoft Edge can delegate user credentials</strong> to the following place.</p>



<pre class="wp-block-preformatted">User Configuration > Administrative Templates > Microsoft Edge > HTTP authentication</pre>



<p>That&#8217;s about as simple as I can put out. If all goes well, it does work like a charm. </p>



<h3 class="wp-block-heading">Resources</h3>



<p><a href="https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sso-how-it-works">Azure AD Connect: Seamless Single Sign-On &#8211; How it works | Microsoft Docs</a></p>



<p><a href="https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sso-quick-start">Azure AD Connect: Seamless Single Sign-On &#8211; quickstart | Microsoft Docs</a></p>



<p></p>The post <a href="https://www.kjctech.net/configuring-azure-active-directory-single-sign-on-sso-with-azure-ad-connect/">Configuring Azure Active Directory Single Sign-On (SSO) with Azure AD Connect</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/configuring-azure-active-directory-single-sign-on-sso-with-azure-ad-connect/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4710</post-id>	</item>
		<item>
		<title>Hiding An Azure AD Sync&#8217;d Group or User from Global Address</title>
		<link>https://www.kjctech.net/hiding-an-azure-ad-syncd-group-or-user-from-global-address/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hiding-an-azure-ad-syncd-group-or-user-from-global-address</link>
					<comments>https://www.kjctech.net/hiding-an-azure-ad-syncd-group-or-user-from-global-address/#respond</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Thu, 15 Apr 2021 04:04:55 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Azure AD Connect]]></category>
		<category><![CDATA[Office 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4603</guid>

					<description><![CDATA[<p>I have a Azure AD Synced group that I don&#8217;t want people to see from the address book. Since it&#8217;s a synced account I can&#8217;t do much in Office 365 console once it&#8217;s synced. So how can I do that? Turns out, it&#8217;s pretty easy and straightforward. Open Active Directory Users and Computers on your computer, make sure Advanced Features [&#8230;]</p>
The post <a href="https://www.kjctech.net/hiding-an-azure-ad-syncd-group-or-user-from-global-address/">Hiding An Azure AD Sync’d Group or User from Global Address</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>I have a Azure AD Synced group that I don&#8217;t want people to see from the address book. Since it&#8217;s a synced account I can&#8217;t do much in Office 365 console once it&#8217;s synced.</p>



<p>So how can I do that? Turns out, it&#8217;s pretty easy and straightforward.</p>



<p>Open Active Directory Users and Computers on your computer, make sure <strong>Advanced Features</strong> is checked under View tab.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="485" height="269" src="//i0.wp.com/kjctech.net/wp-content/uploads/2021/04/image-2.png" alt="" class="wp-image-4604" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-2.png?w=485&amp;ssl=1 485w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-2.png?resize=450%2C250&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-2.png?resize=250%2C139&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-2.png?resize=360%2C200&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-2.png?resize=100%2C55&amp;ssl=1 100w" sizes="auto, (max-width: 485px) 100vw, 485px" /></figure>



<p>Find the account, double-click it, and go to the Attribute Editor tab. Scroll down until you find one attribute called msExchHideFromAddressLists. Double-click it and set the value as True.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="452" height="452" src="//i0.wp.com/kjctech.net/wp-content/uploads/2021/04/image-3.png" alt="" class="wp-image-4605" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-3.png?w=452&amp;ssl=1 452w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-3.png?resize=450%2C450&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-3.png?resize=250%2C250&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-3.png?resize=360%2C360&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-3.png?resize=100%2C100&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2021/04/image-3.png?resize=150%2C150&amp;ssl=1 150w" sizes="auto, (max-width: 452px) 100vw, 452px" /></figure>



<p>And then wait until the next sync cycle finishes before seeing the group or user disappearing from the list.</p>The post <a href="https://www.kjctech.net/hiding-an-azure-ad-syncd-group-or-user-from-global-address/">Hiding An Azure AD Sync’d Group or User from Global Address</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/hiding-an-azure-ad-syncd-group-or-user-from-global-address/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4603</post-id>	</item>
		<item>
		<title>How To Convert A Cloud Account to Azure AD Synced Account in Microsoft 365?</title>
		<link>https://www.kjctech.net/how-to-convert-a-cloud-account-to-azure-ad-synced-account-in-microsoft-365/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-convert-a-cloud-account-to-azure-ad-synced-account-in-microsoft-365</link>
					<comments>https://www.kjctech.net/how-to-convert-a-cloud-account-to-azure-ad-synced-account-in-microsoft-365/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Wed, 18 Nov 2020 01:21:33 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Azure AD Connect]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4528</guid>

					<description><![CDATA[<p>If you already have accounts set up in Microsoft 365 tenant before you synchronized between on-premises Active Directory and Microsoft 365&#8217;s Azure AD, you may want to convert these accounts to the synced ones, rather than leaving them as the cloud users. Assume you already have your on-premises Active Directory cleaned up and prepared for Azure AD Connect, here are [&#8230;]</p>
The post <a href="https://www.kjctech.net/how-to-convert-a-cloud-account-to-azure-ad-synced-account-in-microsoft-365/">How To Convert A Cloud Account to Azure AD Synced Account in Microsoft 365?</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>If you already have accounts set up in Microsoft 365 tenant before you synchronized between on-premises Active Directory and Microsoft 365&#8217;s Azure AD, you may want to convert these accounts to the synced ones, rather than leaving them as the cloud users.</p>



<p>Assume you already have your on-premises Active Directory cleaned up and prepared for Azure AD Connect, here are the steps that would make it happen.</p>



<p>First off, keep the accounts that you want to convert off the OU that will be synced up with Azure AD Connect. If you already have accounts duplicated in Microsoft 365, permanently delete these accounts first before moving forward.</p>



<p>Then, update the Cloud account&#8217;s UPN to match the one on on-premises AD.</p>



<p>Once done, run the following PowerShell cmdlets to match on-premises AD&#8217;s GUID with Cloud account&#8217;s Immutable ID. Making both IDs match tells Azure AD that the account is linked with on-premises Active Directory.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; title: Code example:; notranslate">
Connect-MsolService
$upn = &quot;name@domain.com&quot;
$id = &#x5B;system.convert]::ToBase64String((Get-ADUser -filter {userprincipalname -eq $UPN}).objectGUid.ToByteArray())
Set-MsolUser -UserPrincipalName $upn -ImmutableId $id
</pre></div>


<p>Thanks to <a href="https://hybridcloudexperts.be/index.php/2017/11/03/changing-an-aad-office-365-cloud-user-to-a-synced-one/" target="_blank" rel="noreferrer noopener">here</a> for the ImuutableID trick.</p>



<p>If you encounter any cmdlet not found error, install and import the MSOnline module first from an elevated PowerShell window.</p>



<pre class="wp-block-preformatted">Install-Module MsOnline</pre>



<p>Finally, move these accounts back to the syncing OU and sync them all to Microsoft 365.</p>The post <a href="https://www.kjctech.net/how-to-convert-a-cloud-account-to-azure-ad-synced-account-in-microsoft-365/">How To Convert A Cloud Account to Azure AD Synced Account in Microsoft 365?</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/how-to-convert-a-cloud-account-to-azure-ad-synced-account-in-microsoft-365/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4528</post-id>	</item>
		<item>
		<title>Setting Up Directory Sync Between On-Premises Active Directory with Microsoft 365 Azure AD</title>
		<link>https://www.kjctech.net/setting-up-directory-sync-between-on-premises-active-directory-with-microsoft-365-azure-ad/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-up-directory-sync-between-on-premises-active-directory-with-microsoft-365-azure-ad</link>
					<comments>https://www.kjctech.net/setting-up-directory-sync-between-on-premises-active-directory-with-microsoft-365-azure-ad/#comments</comments>
		
		<dc:creator><![CDATA[Kent Chen]]></dc:creator>
		<pubDate>Tue, 17 Nov 2020 06:38:09 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Azure AD Connect]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<guid isPermaLink="false">https://www.kjctech.net/?p=4522</guid>

					<description><![CDATA[<p>Microsoft 365 uses an Azure Active Directory to store and manage user credentials for authentication and permissions to access cloud-based resources. If you also have an on-premises Active Directory, you should sync them up for having central account management. The process of setting it up isn&#8217;t hard but it&#8217;s not easy and straightforward either. Here is a quick guide on [&#8230;]</p>
The post <a href="https://www.kjctech.net/setting-up-directory-sync-between-on-premises-active-directory-with-microsoft-365-azure-ad/">Setting Up Directory Sync Between On-Premises Active Directory with Microsoft 365 Azure AD</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></description>
										<content:encoded><![CDATA[<p>Microsoft 365 uses an Azure Active Directory to store and manage user credentials for authentication and permissions to access cloud-based resources. If you also have an on-premises Active Directory, you should sync them up for having central account management.</p>



<p>The process of setting it up isn&#8217;t hard but it&#8217;s not easy and straightforward either. Here is a quick guide on how to make it happen.</p>



<h2 class="wp-block-heading">Local AD Preparation</h2>



<p>If your local domain has the same name as the one verified in Microsoft 365, preparation is easy. All you need to do is to make sure the UPN (UserPrincipalName) attribute matches the one you are planning to use in Microsoft 365.</p>



<p>However, if your local AD domain is a non-routable domain such as .local, you will need to add a second UPN suffix and update your users to it. The synced accounts with .local UPN will be automatically assigned the default onmicrosoft.com domain.</p>



<h3 class="wp-block-heading">To Add a new UPN suffix</h3>



<p>First, open Active Directory Domains and Trusts. Right-click Active Directory Domains and Trusts and choose Properties.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="529" height="311" src="//i0.wp.com/kjctech.net/wp-content/uploads/2020/11/image-2.png" alt="" class="wp-image-4523" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/image-2.png?w=529&amp;ssl=1 529w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/image-2.png?resize=450%2C265&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/image-2.png?resize=250%2C147&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/image-2.png?resize=520%2C306&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/image-2.png?resize=360%2C212&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/image-2.png?resize=100%2C59&amp;ssl=1 100w" sizes="auto, (max-width: 529px) 100vw, 529px" /></figure>



<p>And add a new UPN suffix in the Properties window that pops up.</p>



<h3 class="wp-block-heading">To update UPN suffix for existing users</h3>



<p>You can update it in the Account tab in each user account&#8217;s properties window. But a much better way is to use PowerShell.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: powershell; title: Code example:; notranslate">
$adusers = Get-ADUser - Filter * -SearchBase &quot;OU=OU Name, DC=domain, DC=local&quot; | Sort-Object Name
$adusers | ForEach {$_ | Set-ADUser -UserPrincipalName ($_.SamAccountName + '@domain.com')}
</pre></div>


<h3 class="wp-block-heading">The IdFix tool</h3>



<p>There are other attributes in your AD that might need to be cleaned up, such as proxyAddresses, SAMAccountName, etc. The best way is to use a tool like <a href="https://microsoft.github.io/idfix/" target="_blank" rel="noreferrer noopener">IdFix</a> to identify and remediate the majority of directory synchronization errors.</p>



<p>You can download the tool in your Micrsoft 365 Directory Sync Status page and run it directly on your domain-joined Windows 10 computer.</p>



<h3 class="wp-block-heading">An Account for Azure AD Sync</h3>



<p>The Azure AD Connect tool will help set it up during the setup wizard but it&#8217;s easier to have it ready before you run the configuration wizard.</p>



<p>Create a regular domain account with a password that matches the AD&#8217;s password complicity policy. And you will have to grant the user the following two permissions. Or the password hash sync will fail.</p>



<ul class="wp-block-list">
<li>Replicating Directory Changes</li>



<li>Replicating Directory Changes All</li>
</ul>



<p>To do so, </p>



<ol class="wp-block-list">
<li>Open Active Directory Users and Computers</li>



<li>Go to View and select Advanced Features.</li>



<li>Right-click the main domain name and choose Properties.</li>



<li>In Security tab, add the account you want to use to directory sync and Allow the above two permissions.</li>
</ol>



<h2 class="wp-block-heading">Azure AD Connect</h2>



<p>Now, let&#8217;s download the <a href="https://www.microsoft.com/en-us/download/details.aspx?id=47594" target="_blank" rel="noreferrer noopener">Azure AD Connect</a>, install it on the Active Directory server, and <a href="https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-install-custom" target="_blank" rel="noreferrer noopener">run the configuration wizard</a>. Follow up the wizard and it should be up and running shortly.</p>



<p>A few notes though that I hope would help.</p>



<p>You can sync the entire directory or the OUs of your choice.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="600" height="423" src="//i0.wp.com/kjctech.net/wp-content/uploads/2020/11/domainoufiltering-600x423.png" alt="" class="wp-image-4524" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=600%2C423&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=450%2C317&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=250%2C176&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=768%2C541&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=700%2C493&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=520%2C366&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=360%2C254&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?resize=100%2C70&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/domainoufiltering.png?w=880&amp;ssl=1 880w" sizes="auto, (max-width: 600px) 100vw, 600px" /></figure>



<p>There two ways you can stage your AD sync process. You can either enable the Stage mode in Azure AD Connect, or filter users via a specified group.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="600" height="424" src="//i0.wp.com/kjctech.net/wp-content/uploads/2020/11/filter2-600x424.png" alt="" class="wp-image-4525" srcset="https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=600%2C424&amp;ssl=1 600w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=450%2C318&amp;ssl=1 450w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=250%2C177&amp;ssl=1 250w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=768%2C543&amp;ssl=1 768w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=700%2C494&amp;ssl=1 700w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=520%2C367&amp;ssl=1 520w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=360%2C254&amp;ssl=1 360w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?resize=100%2C71&amp;ssl=1 100w, https://i0.wp.com/www.kjctech.net/wp-content/uploads/2020/11/filter2.png?w=872&amp;ssl=1 872w" sizes="auto, (max-width: 600px) 100vw, 600px" /></figure>



<p>Note that if you use the Group filter option with the selected OUs, make sure the group resides inside that OU. Or, no accounts will be sync&#8217;d up.</p>



<p>To force a sync to start out of the scheduled window, run the following PowerShell cmdlet.</p>



<pre class="wp-block-preformatted">Start-ADSyncSyncCycle -PolicyType Delta</pre>



<p>To initiate a complete sync, </p>



<pre class="wp-block-preformatted">Start-ADSyncSyncCycle -PolicyType Initial</pre>



<p>If you are seeing an error telling you that the cmdlet is not recognized, run this.</p>



<pre class="wp-block-preformatted">Import-module ADSync</pre>



<h2 class="wp-block-heading">Resources</h2>



<ul class="wp-block-list">
<li><a href="https://docs.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-integration?view=o365-worldwide" target="_blank" rel="noreferrer noopener">Microsoft 365 integration with on-premises environments</a></li>



<li><a href="https://docs.microsoft.com/en-us/microsoft-365/enterprise/set-up-directory-synchronization?view=o365-worldwide" target="_blank" rel="noreferrer noopener">Set up directory synchronization for Microsoft 365</a></li>



<li><a href="https://docs.microsoft.com/en-us/microsoft-365/enterprise/prepare-for-directory-synchronization?view=o365-worldwide" target="_blank" rel="noreferrer noopener">Prepare for directory synchronization to Microsoft 365</a></li>



<li><a href="https://docs.microsoft.com/en-us/microsoft-365/enterprise/prepare-a-non-routable-domain-for-directory-synchronization?view=o365-worldwide" target="_blank" rel="noreferrer noopener">Prepare a non-routable domain for directory synchronization</a></li>



<li><a href="https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-whatis" target="_blank" rel="noreferrer noopener">Azure AD Connect Sync: understand and customize synchronization</a></li>
</ul>The post <a href="https://www.kjctech.net/setting-up-directory-sync-between-on-premises-active-directory-with-microsoft-365-azure-ad/">Setting Up Directory Sync Between On-Premises Active Directory with Microsoft 365 Azure AD</a> first appeared on <a href="https://www.kjctech.net">KC's Blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.kjctech.net/setting-up-directory-sync-between-on-premises-active-directory-with-microsoft-365-azure-ad/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4522</post-id>	</item>
	</channel>
</rss>
