<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2530 " id="quads-ad2530" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<h2 class="wp-block-heading">Creating Custom Attributes on On-Premises AD for Exchange Online Users</h2>



<p>I have came across some interesting scenario where Exchange Server doesn’t exist however some attributes might be still required or used on Office 365 for Exchange online users which are Synced with Azure Active Directory Sync tool.</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2523 " id="quads-ad2523" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2531 " id="quads-ad2531" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2528 " id="quads-ad2528" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p>The attributes might be used for different purposes but sometimes it’s very necessary so I will go ahead and demonstrate how to create a custom attribute which is normally created by default with Exchange servers deployed on-prem.</p>



<h2 class="wp-block-heading">First I will run the Schema console</h2>



<p>On one of the DC servers which are synced with Office 365 Launch ; CMD as Administrator</p>



<p>Run the following Command</p>



<p>regsvr32 schmMgmt.dll</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-DqznuJ5rwgw/VbnULsnkgQI/AAAAAAAAQYs/zPzGFETbjlo/clip_image001_thumb.png?imgmax=800" alt="clip_image001"/> 

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2524 " id="quads-ad2524" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 
</figure>



<p><a href="http://lh3.googleusercontent.com/-r_pJ4aorRQE/VbnUKjECCLI/AAAAAAAAQYk/tAQM-NeTvaE/s1600-h/clip_image001%25255B3%25255D.png"></a></p>



<p>Run MMC</p>



<p>Click on File ->; ADD /Remove Snap in</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-h-H2OgR8zmo/VbnUMxEeDaI/AAAAAAAAQY8/EzQmK2OtR78/clip_image002_thumb.png?imgmax=800" alt="clip_image002"/></figure>



<p><a href="http://lh3.googleusercontent.com/-VcCZBCqWf-I/VbnUMIAWxSI/AAAAAAAAQY0/AfA6CujJLxA/s1600-h/clip_image002%25255B3%25255D.png"></a></p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-KoqAXsiXL2s/VbnUOcjStLI/AAAAAAAAQZM/Pest9KqEKeA/clip_image003_thumb.png?imgmax=800" alt="clip_image003"/></figure>



<p><a href="http://lh3.googleusercontent.com/-R0gTGPs_3r8/VbnUNoXxXOI/AAAAAAAAQZE/pDQtfY_GWDw/s1600-h/clip_image003%25255B3%25255D.png"></a></p>



<p>Right Click on Attributes ->; Create Attribute…</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-Tm1Sz6p9FJM/VbnUQMVSfcI/AAAAAAAAQZc/M4OPlgKbmU4/clip_image004_thumb.png?imgmax=800" alt="clip_image004"/></figure>



<p><a href="http://lh3.googleusercontent.com/-sKLGGu8Bfbo/VbnUPacstcI/AAAAAAAAQZU/FOv3dN85Ojs/s1600-h/clip_image004%25255B3%25255D.png"></a></p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-HBo4yEEEMMA/VbnUR5a1MgI/AAAAAAAAQZs/Yp2sh_sP6OE/clip_image005_thumb.png?imgmax=800" alt="clip_image005"/></figure>



<p><a href="http://lh3.googleusercontent.com/-1tzNGUnhvQ0/VbnUQpXySII/AAAAAAAAQZk/csWfdIOX8uc/s1600-h/clip_image005%25255B3%25255D.png"></a></p>



<p>Click on Continue</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-0r-UPHG3Ko8/VbnUTXmKqNI/AAAAAAAAQZ8/FQCBAtfcBr0/clip_image006_thumb.png?imgmax=800" alt="clip_image006"/></figure>



<p><a href="http://lh3.googleusercontent.com/-M1wWLMbHaZs/VbnUSoRtOyI/AAAAAAAAQZ0/EgBc1k54yng/s1600-h/clip_image006%25255B3%25255D.png"></a></p>



<p>Click OK</p>



<p>Go to Attributes, Navigate to Custom attributes and double click on it and tick the boxes below then click apply</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2527 " id="quads-ad2527" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-7EgegqX27K4/VbnUU9lEWvI/AAAAAAAAQaM/lXgiC_qORQk/clip_image007_thumb.png?imgmax=800" alt="clip_image007"/></figure>



<p><a href="http://lh3.googleusercontent.com/-Y8Ihy5nY5js/VbnUUJAjnPI/AAAAAAAAQaE/80kBm6ktzMI/s1600-h/clip_image007%25255B3%25255D.png"></a></p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-Zc8OCY3PKf8/VbnUWYQ_xeI/AAAAAAAAQac/0xSWhLUdyaQ/clip_image008_thumb.png?imgmax=800" alt="clip_image008"/></figure>



<p><a href="http://lh3.googleusercontent.com/-3sD78Bk73K0/VbnUVvyyHwI/AAAAAAAAQaU/8hceCJGyJrM/s1600-h/clip_image008%25255B3%25255D.png"></a></p>



<p>Now go to Classes</p>



<p>Find and double click on User</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-73yPn-sI2tw/VbnUX7CqHVI/AAAAAAAAQas/PGwN63B6284/clip_image009_thumb.png?imgmax=800" alt="clip_image009"/></figure>



<p><a href="http://lh3.googleusercontent.com/-e5ZiWc3dhOg/VbnUXJJF_vI/AAAAAAAAQak/bfiRtZA9HDw/s1600-h/clip_image009%25255B3%25255D.png"></a></p>



<p>Now go to Attributes tab</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-ROQ-GFA1BX8/VbnUZcQ6iJI/AAAAAAAAQa8/8358ProgA6E/clip_image010_thumb.png?imgmax=800" alt="clip_image010"/></figure>



<p><a href="http://lh3.googleusercontent.com/-MvsGrPVXPmE/VbnUYoq6MfI/AAAAAAAAQa0/wLJawdmHrkA/s1600-h/clip_image010%25255B3%25255D.png"></a></p>



<p>Click on Add and add the Custom Attribute</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-1MM8XxxxI8c/VbnUbFPegPI/AAAAAAAAQbM/yihjsTnfEP0/clip_image011_thumb.png?imgmax=800" alt="clip_image011"/></figure>



<p><a href="http://lh3.googleusercontent.com/-z6wvrecpyug/VbnUaCzqzkI/AAAAAAAAQbE/maxgQkkAayA/s1600-h/clip_image011%25255B3%25255D.png"></a></p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/--vDkPaKqEf4/VbnUcmCJcNI/AAAAAAAAQbc/52G9DzORh4s/clip_image012_thumb.png?imgmax=800" alt="clip_image012"/></figure>



<p><a href="http://lh3.googleusercontent.com/-_ZBVRowLdJg/VbnUb4iAtnI/AAAAAAAAQbU/fNeE5gRosBg/s1600-h/clip_image012%25255B3%25255D.png"></a></p>



<p>Click Apply</p>



<p>Now go back to CMD on DC Server and replicate changes across all DC servers</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-zC2te7Q4AWs/VbnUeTnIc3I/AAAAAAAAQbs/AcQ72Jzb8Kc/clip_image013_thumb.png?imgmax=800" alt="clip_image013"/></figure>



<p><a href="http://lh3.googleusercontent.com/-DNxkw33lmcw/VbnUdQB9fJI/AAAAAAAAQbk/iFqSem_cajA/s1600-h/clip_image013%25255B3%25255D.png"></a></p>



<p>Open ADUC and check users attributes</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-2ohQ_VvQc7w/VbnUfz7CI1I/AAAAAAAAQb8/Rj6y6IIi-As/clip_image014_thumb.png?imgmax=800" alt="clip_image014"/></figure>



<p><a href="http://lh3.googleusercontent.com/-Mq93c9NZqnY/VbnUfPXo1VI/AAAAAAAAQb0/rbE0WeXgmhI/s1600-h/clip_image014%25255B3%25255D.png"></a></p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2526 " id="quads-ad2526" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p>Hope this helps ; ;</p>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2522 " id="quads-ad2522" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…
View Comments
This helped me out a ton. Thanks Mohammed!
Your welcome KM
This is exactly my configuration and describes exactly what I'm trying to do. I want to populate the CustomAttribute1-15 attributes with information to be pulled by O365 for signatures. I've followed your instructions exactly and can see the attribute in AD, and can populate it. I've included it in the scope for the AD Sync, but I don't see the values which are set in AD reflected in the Exchange properties of O365.
The only difference I can see is that in O365, the attribute is "CustomAttribute1", and in AD it's "customAttribute1". Is this case sensitive?
In your case, You will need to set ADConnect in Hybrid mode so that the Exchange Online is set to accept values from On-premises.
The O365 Exchange normally is locked unless you have Hybrid mode enabled.
Not true at all!
Check this instead
https://community.spiceworks.com/topic/1766141-how-to-update-the-ad-attribute-customattribute1-and-synchronize-it-with-o365
Hi Sebus,
This is not the exchange ExtensionAttribute1 which you normally find on user's attributes. it's a custom attribute when you don't have Exchange on-premises installed and Schema was not prepared so the ExtensionAttributes are not there.
Instead of that I choose to create a custom attribute instead of extending AD schema with Exchange.
Hi Thank you for this article, it works for me but with some changes,
- My goal is to sync Custom Attribute from On-Premise AD to Exchange Online via O365, to create a Dynamic Distribution Groupe, with custom attribute rules.
+ The only difference is to change Custom Attribute X "Label" to Extension Attribute X "Label".
+ MS AzureAD Connect | Refresh Directory Schema.
+ MS AzureAD Comnnect | Enable/Configure: Directory extension Attribute sync | add your Extension Attribute
https://learn.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-sync-attributes-synchronized