SOLVED

How to edit Exchange Online attributes for a tenant with AD-Sync with ease

%3CLINGO-SUB%20id%3D%22lingo-sub-1332219%22%20slang%3D%22en-US%22%3EHow%20to%20edit%20Exchange%20Online%20attributes%20for%20a%20tenant%20with%20AD-Sync%20with%20ease%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332219%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20a%20question%20regarding%20managing%20O365%20attributes%20that%20does%20not%20exist%20in%20an%20on-prem%20AD%20when%20using%20AD-Sync.%20Surely%20there%20must%20be%20tons%20of%20companies%20with%20a%20Microsoft%20AD%20that%20has%20never%20had%20their%20own%20Exchange%20installation%20but%20migrated%20to%20O365%20and%20are%20using%20plans%20that%20include%20mailboxes.%20I%20cannot%20find%20any%20prerequisites%20from%20Microsoft%20that%20you%20must%20or%20should%2C%20expand%20the%20company%20AD%20scheme%20with%20the%20Exchange%20attributes%20to%20be%20able%20to%20manage%20the%20mailboxes%20and%20all%20their%20attributes%20after%20the%20sync%20has%20been%20established.%3C%2FP%3E%3CP%3EAs%20a%20common%20example%2C%20a%20user%20changes%20their%20name%20due%20to%20marriage.%20I%20need%20to%20update%20attributes%20like%20MailNickName%20and%20proxyAddresses%20and%20such%20to%20match%20their%20new%20name%20in%20O365.%3C%2FP%3E%3CP%3EIf%20I%20would%20try%20to%20edit%20attributes%20directly%20through%20O365%20for%20a%20user%20in%20an%20AD-Synced%20tenant%2C%20it%20would%20give%20the%20following%20error%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eerror%3C%2FP%3E%3CP%3EThe%20operation%20on%20mailbox%20%22Firstname%20Lastname%22%20failed%20because%20it's%20out%20of%20the%20current%20user's%20write%20scope.%20The%20action%20'Set-Mailbox'%2C%20'EmailAddresses'%2C%20can't%20be%20performed%20on%20the%20object%20'Firstname%20Lastname'%20because%20the%20object%20is%20being%20synchronized%20from%20your%20on-premises%20organization.%20This%20action%20should%20be%20performed%20on%20the%20object%20in%20your%20on-premises%20organization.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20I%20know%20why%20this%20is%2C%20but%20I%20cannot%20find%20a%20good%20answer%20as%20how%20IT%20managers%20goes%20about%20their%20daily%20work%20editing%20these%20kinds%20of%20things%20with%20ease.%20Some%20blogs%20and%20threads%20here%2C%20taking%20a%20single%20change%20as%20an%20example%2C%20says%20that%20the%20%22supported%20method%22%20is%20to%20expand%20the%20AD%20with%20the%20Exchange%20attributes%20and%20synk%20up%20the%20changes.%20But%2C%20this%20way%20I%20can%20only%20apply%20or%20edit%20some%20attributes%20in%20O365%2C%20I%20cannot%20erase%20them%20easily.%20Lets%20say%20I%20need%20to%20add%20one%20and%20erase%20another%20of%206%20e-mail%20alias%20for%20a%20mailbox.%20I%20can%20add%20one%20through%20ADUC%20and%20set%20proxyaddresses%20%3D%20smtp%3AFirstname.newlastname%40company.com%20and%20that%20will%20be%20added%20to%20the%20mailbox%20on%20the%20next%20sync%20but%20it%20will%20not%20take%20away%20any%20old%20ones.%20So%2C%20how%20would%20I%20delete%20one%3F%3C%2FP%3E%3CP%3EIf%20we%20have%20an%20%E2%80%9Cnon%20personal%E2%80%9D%20e-mail%20alias%20that%20needs%20to%20be%20transferred%20from%20one%20mailbox%20to%20another%2C%20how%20would%20I%20easily%20do%20that%20through%20ADUC%3F%3C%2FP%3E%3CP%3EWhat%20is%20the%20best%20practice%20to%20alter%20Exchange%20attributes%20on%20a%20O365%20accounts%20when%20synked%20with%20an%20on-prem%20AD%20that%20has%20never%20had%20an%20Exchange%20installation%3F%20Should%20I%20brake%20the%20synk%20each%20time%20and%20edit%20all%20the%20changes%20directly%20in%20O365%20and%20then%20re-apply%20the%20synk%3F%20I%20work%20with%20hundreds%20of%20smaller%20companies%20that%20now%20plan%20to%20take%20their%20step%20up%20to%20O365.%20Surely%20the%20answer%20cannot%20be%20to%20expand%20all%20these%20companies%20AD%20schemes%20with%20Exchange%20attributes%20and%20alter%20attributes%20on%20a%20daily%20basis%20for%20thousands%20of%20users%20through%20ADUC%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHopes%20for%20a%20good%20answer%2C%3C%2FP%3E%3CP%3EBest%20regards%2C%20Karljohan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1332219%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20O365%20AD-Sync%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332448%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20edit%20Exchange%20Online%20attributes%20for%20a%20tenant%20with%20AD-Sync%20with%20ease%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332448%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F634192%22%20target%3D%22_blank%22%3E%40Karljohan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20when%20you%20synchronise%20your%20on-premises%20AD%20to%20Azure%20AD%20with%20AADC%2C%20it%20is%20Microsoft%20recommended%2Fsupported%20practice%20to%20install%20an%20Exchange%202016%20management%20server%20and%20configure%20hybrid%20co-existence.%20%26nbsp%3BIf%20you%20have%20O365%20Enterprise%20licensing%2C%20then%20you%20will%20qualify%20for%20a%20free%20Exchange%202016%20hybrid%20licence%20key.%20%26nbsp%3BThis%20is%20conditional%20on%20no%20mailboxes%20being%20present%20on%20the%20server.%20%26nbsp%3BThis%20is%20the%20best%20way%20to%20manage%20attributes%20such%20as%20secondary%20email%20addresses%20in%20a%20hybrid%20identities%20methodology.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20it%20is%20also%20possible%20(but%20not%20really%20recommended)%20to%20manage%20on-premises%20attributes%20without%20the%20Exchange%20Management%20server%20by%20using%20either%20ADSI%20edit%20(to%20be%20used%20with%20great%20caution)%2C%20or%20by%20enabling%20Advanced%20Features%20in%20AD%20Users%20and%20computers%2C%20which%20will%20enable%20the%20attribute%20editor%20tab%20in%20the%20user%20properties.%20%26nbsp%3BThese%20methods%20will%20allow%20you%20to%20add%20and%20remove%20smtp%20addresses%20by%20modifying%20the%20proxy%20addresses%20filter%20setting.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20highly%20recommend%20the%20first%20option%2C%20as%20it%20is%20free%20to%20setup%20if%20you%20have%20O365%20E1%20or%20E3%20licences%20and%20offers%20far%20more%20control%20of%20those%20attributes%20which%20must%20be%20managed%20on-prremises.%20%26nbsp%3BYou%20just%20need%20to%20spin%20up%20a%20server%20to%20install%20Exchange%202016%20on%20(which%20may%20require%20a%20schema%20update)%2C%20and%20then%20you%20can%20run%20the%20Hybrid%20Configuration%20Wizard.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332823%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20edit%20Exchange%20Online%20attributes%20for%20a%20tenant%20with%20AD-Sync%20with%20ease%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332823%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20to%20add%20to%20the%20above%2C%20at%20minimum%20you%20should%20extend%20the%20on-premises%20AD%20schema%20with%20the%20Exchange%20attributes.%20Regardless%20on%20whether%20you%20plan%20to%20keep%20an%20Exchange%20box%20for%20management%20purposes%20or%20not.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Hi,

I have a question regarding managing O365 attributes that does not exist in an on-prem AD when using AD-Sync. Surely there must be tons of companies with a Microsoft AD that has never had their own Exchange installation but migrated to O365 and are using plans that include mailboxes. I cannot find any prerequisites from Microsoft that you must or should, expand the company AD scheme with the Exchange attributes to be able to manage the mailboxes and all their attributes after the sync has been established.

As a common example, a user changes their name due to marriage. I need to update attributes like MailNickName and proxyAddresses and such to match their new name in O365.

If I would try to edit attributes directly through O365 for a user in an AD-Synced tenant, it would give the following error:

 

error

The operation on mailbox "Firstname Lastname" failed because it's out of the current user's write scope. The action 'Set-Mailbox', 'EmailAddresses', can't be performed on the object 'Firstname Lastname' because the object is being synchronized from your on-premises organization. This action should be performed on the object in your on-premises organization.

 

So, I know why this is, but I cannot find a good answer as how IT managers goes about their daily work editing these kinds of things with ease. Some blogs and threads here, taking a single change as an example, says that the "supported method" is to expand the AD with the Exchange attributes and synk up the changes. But, this way I can only apply or edit some attributes in O365, I cannot erase them easily. Lets say I need to add one and erase another of 6 e-mail alias for a mailbox. I can add one through ADUC and set proxyaddresses = smtp:Firstname.newlastname@company.com and that will be added to the mailbox on the next sync but it will not take away any old ones. So, how would I delete one?

If we have an “non personal” e-mail alias that needs to be transferred from one mailbox to another, how would I easily do that through ADUC?

What is the best practice to alter Exchange attributes on a O365 accounts when synked with an on-prem AD that has never had an Exchange installation? Should I brake the synk each time and edit all the changes directly in O365 and then re-apply the synk? I work with hundreds of smaller companies that now plan to take their step up to O365. Surely the answer cannot be to expand all these companies AD schemes with Exchange attributes and alter attributes on a daily basis for thousands of users through ADUC?

 

Hopes for a good answer,

Best regards, Karljohan

2 Replies
Best Response confirmed by Karljohan (Occasional Visitor)
Solution

@Karljohan 

 

Hi, when you synchronise your on-premises AD to Azure AD with AADC, it is Microsoft recommended/supported practice to install an Exchange 2016 management server and configure hybrid co-existence.  If you have O365 Enterprise licensing, then you will qualify for a free Exchange 2016 hybrid licence key.  This is conditional on no mailboxes being present on the server.  This is the best way to manage attributes such as secondary email addresses in a hybrid identities methodology.

 

However, it is also possible (but not really recommended) to manage on-premises attributes without the Exchange Management server by using either ADSI edit (to be used with great caution), or by enabling Advanced Features in AD Users and computers, which will enable the attribute editor tab in the user properties.  These methods will allow you to add and remove smtp addresses by modifying the proxy addresses filter setting.

 

I highly recommend the first option, as it is free to setup if you have O365 E1 or E3 licences and offers far more control of those attributes which must be managed on-prremises.  You just need to spin up a server to install Exchange 2016 on (which may require a schema update), and then you can run the Hybrid Configuration Wizard.

Highlighted

Just to add to the above, at minimum you should extend the on-premises AD schema with the Exchange attributes. Regardless on whether you plan to keep an Exchange box for management purposes or not.