Share via

Alias in exchange online visible but does not exisit in onprem AD

Jan De Smet 156 Reputation points
2023-03-14T15:54:36.0466667+00:00

Hello,

For one of our users we see an existing alias in our Exchange online portal. In our AD onprem there is no such alias.

Most likely something went wrong during our renaming of this user?

in ADSIEDIT we cannot find the alias. I found some information on deleting the user, but there's a lot of maildata, I do want to explore other possibilities first.

thanks

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer accepted by question author
  1. Aholic Liang-MSFT 13,921 Reputation points Microsoft External Staff
    2023-03-23T09:57:49.5466667+00:00

    Hi @ Jan De Smet

    Great to know that you've already thought of a solution and really appreciate it for your sharing!
    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
    [Alias in exchange online visible but does not exisit in onprem AD]
    Issue Symptom:

    For one of our users we see an existing alias in our Exchange online portal. In our AD onprem there is no such alias.

    In ADSIEDIT we cannot find the alias. I found some information on deleting the user, but there's a lot of maildata, I do want to explore other possibilities first.

     

    The Solution:

    I ended up deleting the user object in the onprem AD. Synced manually.

    I created a new user with the same SMTP and upn.

    I then restored the content from the "old" mailbox to the new mailbox.

    https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailboxrestorerequest?view=exchange-ps

    this worked perfect.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Jan De Smet 156 Reputation points
    2023-03-21T12:47:55.5433333+00:00

    Hi, I ended up deleting the user object in the onprem AD. Synced manually.

    I created a new user with the same SMTP and upn.

    I then restored the content from the "old" mailbox to the new mailbox.

    https://learn.microsoft.com/en-us/powershell/module/exchange/new-mailboxrestorerequest?view=exchange-ps

    this worked perfect. Many thanks.

    1 person found this answer helpful.
    0 comments No comments

  2. Vasil Michev 125.9K Reputation points MVP Volunteer Moderator
    2023-03-14T16:26:02.7233333+00:00

    There are scenarios where you can add an alias directly to the cloud user, even when dirsync is in play. Removing it is a bit trickier though. The supported method would be to temporary disable dirsync, make any necessary changes to the cloud object, re-enabled dirsync.

    And unsupported and faster, albeit scarier workaround is to delete the user in the cloud, and immediately recover him from the Recycle bin. This effectively makes it a "disconnector", allowing you to manage all its properties directly in the cloud. But again, unsupported, use at your own risk.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.