Issues with Managing Aliases in O365 Hybrid AD Setup

Deepu K 40 Reputation points
2024-07-18T15:20:34.2533333+00:00

In my O365 users -> Manage username and email, I am unable to add Aliases or see previously created Aliases in my mail account. My O365 is Hybrid AD joined with Azure and displays the information: "This user is synchronized with your local Active Directory. Some details can be edited only through your local Active Directory."
I have some queries regarding this setup:

  1. Why were all of my aliases deleted after the Hybrid AD Sync?
  2. How can I recreate those aliases with my current Hybrid setup?
  3. How can I prevent the deletion of aliases for those AAD sync user accounts?
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,136 questions
0 comments No comments
{count} votes

Accepted answer
  1. Noah Ma-MSFT 2,725 Reputation points Microsoft Vendor
    2024-07-24T06:27:09.9266667+00:00

    Hi,

    Thanks for the information,

    Please kindly check if the address match in AD since the error message prompt the object cannot be found.

    Also, you could try another way to run the command as below.

    $user = "username@domain.com" # Replace with the user's UPN or DistinguishedName

    $newAlias = "smtp:alias@domain.com" # Replace with the new alias

    $userDetails = Get-ADUser -Identity $user -Properties proxyAddresses # Retrieve the current proxyAddresses

    $currentProxyAddresses = $userDetails.proxyAddresses # Add the new alias to the existing proxyAddresses array

    $currentProxyAddresses += $newAlias

    Set-ADUser -Identity $user -Replace @{proxyAddresses=$currentProxyAddresses} # Update the user with the new proxyAddresses

    Then, you could make a sync to Azure AD after change.

    Hope it helps.


3 additional answers

Sort by: Most helpful
  1. Noah Ma-MSFT 2,725 Reputation points Microsoft Vendor
    2024-07-19T08:21:02.6533333+00:00

    Hi @Deepu K,

    Thank you for posting to Microsoft Community.

    Based on your description, I understand you want to add the aliases in your Hybrid environment with Azure AD Connect.

    For this you could use AD User and Computer (ADUC), find the user, double click -> attribute editor -> find "proxyAddresses" and add the address. Add to the on-prem object via ADUC and it will sync via AADConnect within 30 minutes.

    However, please kindly note Microsoft do not support AADConnect syncing to 365 not having at least one Exchange Server on-prem for management.

    If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.


  2. Philippe Levesque 5,801 Reputation points
    2024-07-25T15:02:34.83+00:00

    Hi, if it's an hybrid setup that had a local Exchange;

    1. The alias for domain not added to O365 will disappear, ie; you have contoso.org added as a main domain, and you have an alias for contosocopr.org, but the domain isn't added in O365, but was in your local Exchange.
    2. Use Exchange EAC if your hybrid setup had a Exchange server. It's the easiest way. Install the console with the latest Exchange 2019 CU if you dont want to reopen your Exchange.
    3. Alias should not disappear if everything is set up correctly ! If in hybrid, dont forget that if you uninstall the last Exchange server, you can lost ad attribute related to mail (Alias maybe)

  3. Deepu K 40 Reputation points
    2024-07-29T11:15:56.2566667+00:00

    Dear @Noah Ma-MSFT
    Dear Noah,Thank you for your support. I’m sorry to say that I was not able to see the "Accept Answer " option for the working answer you shared.

    0 comments No comments

Your answer

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