Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hello Vmm,
Sorry for my late responding, I was out of office these days.
You can try below method (multi-select users to update) to see if it works:
There’s some PowerShell commands that admin can use for account management:
- To update user login name (UserPrincipleName), you may connect to Office 365 online PowerShell, and the main command is Set-MsolUser, you may compose several lines of script for bulk updating like (below sample isn’t strictly, please modify and use it for a test account firstly):
$domain="contoso.com"
Get-Msoluser | where-object {$_.UserPrincipalName.ToLower().EndsWith("onmicrosoft.com")} | Foreach-Object{
$newUserPrincipalName= $_.UserPrincipalName.Split("@")[0] + "@" + $domain
Set-MsolUserPrincipalName -UserPrincipalName $_.UserPrincipalName -NewUserPrincipalName $newUserPrincipalName
}
- To update user SMTP address, the main command is Set-Mailbox, and you may connect to Exchange Online PowerShell to achieve this. For more information, please check below links:
https://blogs.technet.microsoft.com/timmcmic/2015/05/17/office-365-bulk-update-email-addresses/
Best Regards,
Anna