How I can add mail alias (second address) for O365 account that has been synced with the local AD system?

Allan Stark 501 Reputation points
2021-02-05T14:21:02.073+00:00

I have one account in my local AD which has been synced with Azure AD cloud.
I need to add another (alias) email to it's account but got the error in ExO:

"Error executing request. An Azure Active Directory call was made to keep object in sync between Azure Active Directory and Exchange Online. However, it failed. Detailed error message: Exception happened when doing AAD dual-write.'

I have no Exchange in my local AD.

How I can add additional email addresses to synced accounts like that?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,389 questions
0 comments No comments
{count} votes

Accepted answer
  1. Niklas 181 Reputation points
    2021-02-05T14:43:06.047+00:00

    Hi @Allan Stark ,

    go to AD User and Computer, find the user, doubleclick -> attribute editor -> find "proxyAddresses".
    add the address

    NOTE:
    if there are no values at all in the attribute, please add the value like this:
    SMPT:primaryEmail@yourdomain.com
    smpt:emailyouwanttoadd@yourdomain.com

    every further email needs to be added with "smtp:thenyourmail@yourdomain.com"

    as Andy already said - this is not supported from Microsoft. But it works very well ;-)

    1 person found this answer helpful.

6 additional answers

Sort by: Most helpful
  1. Andy David - MVP 141.1K Reputation points MVP
    2021-02-05T14:23:51.033+00:00

    Add to the on-prem object via ADUC or ADSIEDIT and it will sync via AADConnect within 30 minutes.

    Note its not supported to have AADConnect syncing to 365 and not have at least one Exchange Server on-prem for mgmt.

    1 person found this answer helpful.
    0 comments No comments

  2. Niklas 181 Reputation points
    2021-02-05T14:44:35.403+00:00

    And after synchronization I need to set primary (reply) address in ExO?

    no, this is done by SMTP: and smtp:
    SMTP: is primary
    smtp: is secondary

    1 person found this answer helpful.
    0 comments No comments

  3. Allan Stark 501 Reputation points
    2021-02-05T14:41:33.163+00:00

    Thank you for your answer.
    I need to add both addresses (main and alias) to the proxyAddress field of the user object, right?
    And after synchronization I need to set primary (reply) address in ExO?


  4. Allan Stark 501 Reputation points
    2021-02-05T15:55:57.643+00:00

    Thank you! All works well!

    0 comments No comments