Forum Discussion
Test SharePoint
Oct 11, 2019Brass Contributor
Add email alias to multiple O365 user accounts in bulk
Hello team, We currently have a domain: abc.com We are going to add a new domain: xyz.com users are in-cloud. We want to add email aliases to some of our users as user@xyz.com and set it as p...
Kevin_Morgan
Oct 14, 2019Iron Contributor
An added info : In your environment, if you guys maintain same value for user's PrimarySmtpAddress and UserPrincipalName, then you can use the below command to set Primary Email Address and UserPrincipalName in same command.
Import-CSV blabla.csv | % { Set-Mailbox $_.UserPrincipalName -WindowsEmailAddress $_.NewAddress -MicrosoftOnlineServicesID $_.NewAddress }
In Office 365 cloud environment, you should care about the mismatch of UPN and Email address, because users need to use their UPN (UserPrincipalName) as login name to sign-in to Office 365 apps. You can refer https://www.morgantechspace.com/2018/03/userprincipalname-vs-e-mail-address.html post for more info.