Skip to content

Recent Posts

  • Reset passwords for Active Directory Users
  • Finding Exchange Database hidden mailboxes. ​
  • Setting up ADConnect and PTA (Password auth through) servers agents behind proxy
  • Get Report of Active Directory Locked Accounts and Machine they logged in from
  • Checking and Providing Full and SendAs delegate access on O365 Exchange Online

Most Used Categories

  • Microsoft (82)
    • Microsoft Exchange (39)
      • Exchange 2016 (14)
      • Exchange 2019 (14)
    • Active Directory (25)
  • Office 365 (34)
    • Exchange Online (15)
  • Security (15)
  • Microsoft Azure (15)
  • Powershell (19)
Skip to content

Welcome to Mohammed Hamada's Site

The Troubleshooting Guy

Subscribe
  • Consultation
  • Microsoft
    • DFS
    • KMS
    • Office 365
      • Microsoft ADFS
      • Exchange Online
      • Microsoft Teams
      • Skype for Business
    • Microsoft Azure
      • Microsoft Azure Active Directory Sync
      • Licensing
      • ATP
      • WVD
    • ADMT
  • Virtualization
  • VoIP
    • Lync
    • Asterisk
  • PowerShell Corner
  • Security
    • Auditing
    • Pfsense
  • Contact me
  • Certification and Awards
  • Home
  • Office 365
  • Creating Custom attributes on On-Prem AD for Exchange Online users on O365

Creating Custom attributes on On-Prem AD for Exchange Online users on O365

moh10lyNovember 22, 2019January 2, 2020

Creating Custom Attributes on On-Premises AD for Exchange Online Users

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.

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.

First I will run the Schema console

On one of the DC servers which are synced with Office 365 Launch  CMD as Administrator

Run the following Command

regsvr32 schmMgmt.dll

clip_image001

Run MMC

Click on File -> ADD /Remove Snap in

clip_image002

clip_image003

Right Click on Attributes -> Create Attribute…

clip_image004

clip_image005

Click on Continue

clip_image006

Click OK

Go to Attributes, Navigate to Custom attributes and double click on it and tick the boxes below then click apply

clip_image007

clip_image008

Now go to Classes

Find and double click on User

clip_image009

Now go to Attributes tab

clip_image010

Click on Add and add the Custom Attribute

clip_image011

clip_image012

Click Apply

Now go back to CMD on DC Server and replicate changes across all DC servers

clip_image013

Open ADUC and check users attributes

clip_image014

Hope this helps  

Post navigation

Previous: Copy Immutable ID and Proxy Addresses from Azure to Active Directory
Next: DirSync Installation

Related Posts

Checking and Providing Full and SendAs delegate access on O365 Exchange Online

November 19, 2022January 5, 2023 moh10ly

550 relay not permitted distribution group contact

December 15, 2021December 27, 2022 moh10ly

Testing Office 365 SMTP relay

March 15, 2021March 15, 2021 moh10ly

7 thoughts on “Creating Custom attributes on On-Prem AD for Exchange Online users on O365”

  1. KM says:
    December 30, 2019 at 9:30 pm

    This helped me out a ton. Thanks Mohammed!

    Reply
    1. moh10ly says:
      March 29, 2020 at 2:08 pm

      Your welcome KM

      Reply
  2. BigDaddyZ says:
    March 15, 2020 at 4:38 pm

    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?

    Reply
    1. moh10ly says:
      March 29, 2020 at 2:08 pm

      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.

      Reply
  3. sebus says:
    August 16, 2022 at 5:20 pm

    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

    Reply
    1. moh10ly says:
      September 19, 2022 at 11:10 am

      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.

      Reply
  4. Amine says:
    December 5, 2022 at 1:49 pm

    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

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search for something

Recent Posts

  • Reset passwords for Active Directory Users
  • Finding Exchange Database hidden mailboxes. ​
  • Setting up ADConnect and PTA (Password auth through) servers agents behind proxy
  • Get Report of Active Directory Locked Accounts and Machine they logged in from
  • Checking and Providing Full and SendAs delegate access on O365 Exchange Online
  • Retrieving attachments from Exchange mailbox using python
  • 550 relay not permitted distribution group contact
  • Script to delete all DPM 2019 recovery points

Recent Comments

  • B on SoftEther – Fixing connecting to localhost 5555
  • Denise Diaz on Reset passwords for Active Directory Users
  • Les Gray on Replication after tombstone life expired
  • jimmyj on Search and Delete certain Items/Folders from a Mailbox
  • moh10ly on How to Sync Cloud User to On-premises AD ?

Archives

  • December 2022
  • November 2022
  • January 2022
  • December 2021
  • May 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019

Archives

  • December 2022
  • November 2022
  • January 2022
  • December 2021
  • May 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019

Categories

  • Active Directory
  • ADFS
  • ADMT
  • Asterisk
  • ATP
  • Auditing
  • AZURE
  • Cloud
  • Communication
  • CRM Dynamics
  • CrossForest Migration
  • DFS
  • DNS
  • DPM
  • Exchange 2010
  • Exchange 2013
  • Exchange 2016
  • Exchange 2019
  • Exchange Online
  • Google Chat
  • Infrastructure
  • KMS
  • Licensing
  • Linux
  • Lync
  • Mail
  • Microsoft
  • Microsoft AD Group Policy
  • Microsoft ADFS
  • Microsoft Azure
  • Microsoft Azure Active Directory Sync
  • Microsoft Exchange
  • Microsoft Teams
  • Monitoring
  • Networking
  • Office 365
  • Pentest
  • Pfsense
  • PKI
  • Plesk
  • Powershell
  • Python
  • RDS
  • Scripting
  • Security
  • Skype for Business
  • Skype4Business
  • Ubuntu
  • Uncategorized
  • Virtualization
  • VoIP
  • VPN
  • Windows 10
  • Windows Server
  • Windows Server 2019
  • Windows Virtual Desktop
  • WordPress
  • WVD

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright All Rights Reserved | Theme: BlockWP by Candid Themes.