Hi Evandro Ropelato,
Welcome to our forum!
Here are some steps you may take:
- Add and Verify Your Custom Domain
- Go to the Microsoft 365 Admin Center > Navigate to Settings > Domains > Add dominio.com.br as a custom domain > Verify ownership by adding the TXT or MX record to your DNS
- Set the Correct UPN Suffix (In Azure AD)
- Go to Azure Active Directory > Users > Select each affected user > Click "Edit" next to User Principal Name > Change from @dominiocombr.onmicrosoft.com to @dominio.com.br
- PowerShell Solution (for bulk changes)
Connect-AzureAD
$users = Get-AzureADUser | Where-Object {$.UserPrincipalName -like "*dominiocombr.onmicrosoft.com"}_
foreach ($user in $users) {
$newUPN = $user.UserPrincipalName.Replace("dominiocombr.onmicrosoft.com","dominio.com.br")
Set-AzureADUser -ObjectId $user.ObjectId -UserPrincipalName $newUPN
}
- Set Primary Domain
- In Microsoft 365 Admin Center > Go to Settings > Domains > Set dominio.com.br as the primary domain
Hope it helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our [documentation] to enable e-mail notifications if you want to receive the related email notification for this thread.