Home

What is the best way of fixing Office 365/AD accounts with no target address created

%3CLINGO-SUB%20id%3D%22lingo-sub-195944%22%20slang%3D%22en-US%22%3EWhat%20is%20the%20best%20way%20of%20fixing%20Office%20365%2FAD%20accounts%20with%20no%20target%20address%20created%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195944%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20several%20Active%20Directory%20accounts%2C%2050%20plus%2C%20that%20were%20created%20using%20AD%20and%20not%20Exchange%20Admin%20Center%2C%20and%20as%20a%20result%2C%20these%20accounts%20are%20missing%20SMTP%2Fsmtp%2C%20Target%20Address%20and%20MSEXCHREMOTERECIPIENT%20attributes.%20I%20have%20tried%20manually%20entering%20them%20in%20the%20Attribute%20Editor%2C%20but%20then%20about%20a%20third%20of%20the%20time%2C%20since%20they%20have%20already%20synced%20to%20Office%20365%20it%20creates%20a%20duplicate%20account%2C%20username1234%40domain.mail.onmicrosoft.com%20.%20My%20question%20is%20two%20fold%2C%20first%20what%20is%20the%20best%20way%20of%20fixing%20this%20to%20avoid%20making%20the%20duplicate%20account%2C%20and%20then%20the%20second%20question%20is%2C%20once%20the%20bad%20duplicate%20account%20is%20created%2C%20how%20do%20I%20fix%20it%3F%20I%20need%20the%20target%20address%20as%20both%20my%20scanner%20and%20Asset%20Management%20applications%20require%20the%20target%20address%20to%20send%20mail%20to%20the%20users.%20Any%20help%20is%20greatly%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-195944%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHybrid%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-197305%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20best%20way%20of%20fixing%20Office%20365%2FAD%20accounts%20with%20no%20target%20address%20created%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-197305%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20my%20opinion%20when%20you%20have%20a%20hybrid%20situation%20the%20way%20to%20create%20a%20new%20user%20is%20to%20create%20everything%20on-premise.%20Next%20up%20sync%20the%20user%20account%20and%20migrate%20the%20mailbox%20from%20on-premise%20to%20online.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEvery%20duplicate%20issue%20you%20can%20solve%20due%20to%20stopping%20the%20sync%20first%20-%26gt%3B%20remove%20the%20msol%20user%20-%26gt%3B%20fix%20the%20user%20account%20onpremise%20-%20sync%20the%20user%20again%20and%20attach%20the%20mailbox.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-197263%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20best%20way%20of%20fixing%20Office%20365%2FAD%20accounts%20with%20no%20target%20address%20created%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-197263%22%20slang%3D%22en-US%22%3E%3CP%3EJeff%2C%20thanks%20for%20the%20reply%2C%20I%20am%20trying%20this.%20Is%20this%20also%20the%20way%20to%20solve%20the%20issue%20when%20an%20account%20is%20username1234%40tsus.mail.onmicrosoft.com%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20since%20we%20have%20recently%20changed%20our%20way%20of%20creating%20AD%20accounts%20from%20directly%20on%20the%20AD%20server%2C%20to%20using%20our%20Exchange%20on%20Prem%20via%20the%20Web%20and%20Choosing%20New%20User%20and%20Office%20365%2C%20when%20it%20creates%20the%20new%20365%20account%2C%20it%20is%20preventing%20me%20from%20logging%20into%20the%20new%20users%20account%2C%20and%20I%20can%20not%20determine%20why%20this%20is%20occurring%2C%20their%20AD%20attributes%20appear%20to%20be%20correct%2C%20as%20do%20the%20Office%20365%20settings%2C%20yet%20if%20I%20try%20to%20log%20into%20the%20new%20users%20account%2C%20when%20I%20enter%20the%20credentials%20it%20doesn't%20accept%20is%20and%20it%20doesn't%20offer%20any%20error%20message%20either.%20Any%20thoughts%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-197201%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20best%20way%20of%20fixing%20Office%20365%2FAD%20accounts%20with%20no%20target%20address%20created%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-197201%22%20slang%3D%22en-US%22%3E%3CP%3ESome%20time%20ago%20i%20blogged%20about%20this.%20The%20scenario%20is%20slightly%20different%20but%20if%20i%20understand%20you%20correctly%20this%20is%20something%20you%20can%20try.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fjerrymeyer.nl%2F2017%2F08%2F03%2Ffix-duplicate-exchange-guid-errors%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fjerrymeyer.nl%2F2017%2F08%2F03%2Ffix-duplicate-exchange-guid-errors%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20blogpost%20refers%20to%20duplicate%20exchange%20guids%20due%20to%20a%20misconfiguration%20of%20the%20user%20accounts%20in%20AD%20which%20are%20synced%20tru%20AADconnect%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195981%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20best%20way%20of%20fixing%20Office%20365%2FAD%20accounts%20with%20no%20target%20address%20created%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195981%22%20slang%3D%22en-US%22%3E%3CP%3EBrian%2C%20thanks%20for%20the%20quick%20response%2C%20but%20would%20you%20be%20able%20to%20elaborate%3F%20I%20was%20working%20on%20one%20duplicate%20earlier%20and%20after%20moving%20the%20User%20Object%20into%20an%20unsynced%20OU%2C%20and%20then%20syncing%2C%20I%20then%20replaced%20him%20in%20the%20original%20OU%20and%20in%20Active%20Users%2FMail%20Settings%2F%20It%20said%20to%20migrate%20his%20account%2C%20but%20when%20I%20did%20the%20migration%20failed%20because%20no%20listening%20device%20was%20listening%20to%20our%20service%20on%20the%20end%20point.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-195979%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20best%20way%20of%20fixing%20Office%20365%2FAD%20accounts%20with%20no%20target%20address%20created%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-195979%22%20slang%3D%22en-US%22%3EIn%20the%20Exchange%20Management%20Shell%20(on-premises%20to%20your%20Exchange%20Server)%20run%20Enable-RemoteMailbox%20%3CNAME%3E%20-RemoteRoutingAddress%20%3CNAME%3E%40tenantname.mail.onmicrosoft.com%20and%20this%20will%20enable%20them%20for%20Exchange%20properly.%20You%20might%20need%20to%20set%20them%20as%20shared%20mailboxes%20or%20resources%20etc.%20as%20appropriate%20for%20the%20individual%20mailboxes.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%201234%20duplicate%20scenario%20will%20resolve%20itself%20once%20the%20duplicate%20is%20fixed.%20Using%20the%20DirSync%20errors%20view%20in%20the%20Office%20365%20Admin%20portal%20(under%20Reports)%20see%20who%20is%20the%20duplicate%20and%20resolve%20where%20the%20issue%20is.%20Note%20that%20email%20addresses%20on%20one%20object%20can%20duplicate%20with%20UPNs%20on%20other%20objects%20and%20that%20might%20be%20the%20source%20of%20the%20problem%20as%20well%3CBR%20%2F%3E%3CBR%20%2F%3EBrian%20Reid%3CBR%20%2F%3EOffice%20365%20MVP%3C%2FNAME%3E%3C%2FNAME%3E%3C%2FLINGO-BODY%3E
Steven Powers
New Contributor

I have several Active Directory accounts, 50 plus, that were created using AD and not Exchange Admin Center, and as a result, these accounts are missing SMTP/smtp, Target Address and MSEXCHREMOTERECIPIENT attributes. I have tried manually entering them in the Attribute Editor, but then about a third of the time, since they have already synced to Office 365 it creates a duplicate account, username1234@domain.mail.onmicrosoft.com . My question is two fold, first what is the best way of fixing this to avoid making the duplicate account, and then the second question is, once the bad duplicate account is created, how do I fix it? I need the target address as both my scanner and Asset Management applications require the target address to send mail to the users. Any help is greatly appreciated.

5 Replies
In the Exchange Management Shell (on-premises to your Exchange Server) run Enable-RemoteMailbox <name> -RemoteRoutingAddress <name>@tenantname.mail.onmicrosoft.com and this will enable them for Exchange properly. You might need to set them as shared mailboxes or resources etc. as appropriate for the individual mailboxes.

The 1234 duplicate scenario will resolve itself once the duplicate is fixed. Using the DirSync errors view in the Office 365 Admin portal (under Reports) see who is the duplicate and resolve where the issue is. Note that email addresses on one object can duplicate with UPNs on other objects and that might be the source of the problem as well

Brian Reid
Office 365 MVP

Brian, thanks for the quick response, but would you be able to elaborate? I was working on one duplicate earlier and after moving the User Object into an unsynced OU, and then syncing, I then replaced him in the original OU and in Active Users/Mail Settings/ It said to migrate his account, but when I did the migration failed because no listening device was listening to our service on the end point. 

Some time ago i blogged about this. The scenario is slightly different but if i understand you correctly this is something you can try.

 

https://jerrymeyer.nl/2017/08/03/fix-duplicate-exchange-guid-errors/

 

This blogpost refers to duplicate exchange guids due to a misconfiguration of the user accounts in AD which are synced tru AADconnect

Jeff, thanks for the reply, I am trying this. Is this also the way to solve the issue when an account is username1234@tsus.mail.onmicrosoft.com?

 

Also, since we have recently changed our way of creating AD accounts from directly on the AD server, to using our Exchange on Prem via the Web and Choosing New User and Office 365, when it creates the new 365 account, it is preventing me from logging into the new users account, and I can not determine why this is occurring, their AD attributes appear to be correct, as do the Office 365 settings, yet if I try to log into the new users account, when I enter the credentials it doesn't accept is and it doesn't offer any error message either. Any thoughts?

In my opinion when you have a hybrid situation the way to create a new user is to create everything on-premise. Next up sync the user account and migrate the mailbox from on-premise to online.

 

Every duplicate issue you can solve due to stopping the sync first -> remove the msol user -> fix the user account onpremise - sync the user again and attach the mailbox.

 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies