Azure AD – Converting User to Exchange Online MailUser

azureazure-active-directoryexchangeexchangeonline

I have an Azure AD user (bob@contoso.com) and want to redirect all this users email to an external address (bob@external.com).

I have set up other redirects by creating a new MailUser and setting the externalEmailAddress property.
For example we have a MailUser support@contoso.com with an externalEmailAddress = support@external2.com.
This works well and all emails sent to support@contoso.com are redirected to support@external2.com, but support@contoso.com did not exist in AzureAD before creating the MailUser.

If we try to create a new MailUser in Exchange Online for bob@contoso.com an error occurs because the user already exists.

If I use the Get-User commandlet in ps the RecipientType for bob = User and support = MailUser.

How can I setup an Azure AD user to be a MailUser with redirect to an external address in Exchange Online?

With an on-premises exchange server this would be done using the Enable-MailUser commandlet, but this is unavailable in Exchange online.

Best Answer

You want to set the same alias for the mailbox and mail user, and this will cause this error. As a workaround, we could create mail contact with the same Bob, this also can be set as forwarding email address. Based on my test on my side, it works.

enter image description here