You can use Exchange Online module, here
Set-Mailbox "Identity" -EmailAddresses @{add="user@xyz.com"}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have 2 domains registered in my Microsoft Admin Center. Let's say they are abc.com, and def.com.
All the Users in my organization have primary email as firstname.lastname@abc.com and Alias added as firstname.lastname@def.com.
Now I have added 3rd domain as xyz.com, and want all users to have one more email alias as firstname.lastname@xyz.com. This process is to be done as Bulk Operation, and the best way I identified is doing it from the Powershell. I found 2 methods to bulk update users from the Powershell, and they are:
Get-AzureADUser -Filter $filter | select DisplayName,ProxyAddresses
command, it responses with all the EmailAlliases/ProxyAddresses, but same if we try to update using the command Set-AzureADUser -ObjectId user@abc.com -add @{ProxyAddresses='smtp:user@xyz.com'}
or Set-AzureADUser -ObjectId user@abc.com -ProxyAddresses 'smtp:user@xyz.com'
it reutrns with the error as Set-AzureADUser : A parameter cannot be found that matches parameter name 'ProxyAddresses'
So, is there any ways where I can add one more Proxy Address to the Azure AD User.
You can use Exchange Online module, here
Set-Mailbox "Identity" -EmailAddresses @{add="user@xyz.com"}