Share via

Issues removing alias from mailbox

Lukas Helmers 20 Reputation points
2023-10-09T18:00:14.41+00:00

Good afternoon, I'm working on an issue where O365 SSO fails for a user because of an alias that exists on their account. They can log in other ways with this account but have issues with SSO because of this alias. I see the alias on the O365 admin console not able to remove it from the O365 console. But in the exchange admin console, I don't see it. I logged into our exchange server with my domain admin credentials and tried using the Set-mailbox in the Exchange Management shell but I'm getting an error it couldn't find the user on the domain controller. I've also tried fully qualifying the user name to no avail. Any ideas?

Domain Controller: 2022

Exchange 2016

 C:\Windows\system32>Set-Mailbox -Identity "Jennifer" -EmailAddresses @{remove="kwebb"}
The operation couldn't be performed because object 'Jennifer' couldn't be found on 'domain controller'.
    + CategoryInfo          : NotSpecified: (:) [Set-Mailbox], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=EXCHANGE,RequestId=ae30b3d0-0c7c-4747-89c7-42e276db0d1c,TimeStamp=10/9/2023 5:48
   :59 PM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] BF536209,Microsoft.Exchange.Management.Recipien
  tTasks.SetMailbox
    + PSComputerName        : exchange.mbsbooks.com
Exchange | Other
Exchange | Other

A powerful email and collaboration platform developed by Microsoft, designed to support enterprise-level communication and productivity. Miscellaneous topics that do not fit into specific categories.


1 answer

Sort by: Most helpful
  1. Jarvis Sun-MSFT 10,291 Reputation points Microsoft External Staff
    2023-10-10T07:06:46.7033333+00:00

    Hi @Lukas Helmers

    Welcome to post in our Q&A forum.

    Based on your description, it is possible that the user account is not synced properly between your on-premises Active Directory and Azure Active Directory. I suggest checking if the user account is synced correctly and if there are any errors in the synchronization process.

    You may also want to try removing the alias from your on-premises Active Directory by following these steps:

    1. Open Azure Active Directory and select the user account you would like to edit.
    2. Select Properties > Attribute Editor > Proxyaddresses and add the required alias.
    3. Wait for it to sync to Azure Active directory.

    If there are any updates, feel free to let us know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


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.