Error |Transfer domain to another Azure account

Veyselddd 1 Reputation point

I'm going to transfer my domains and I get errors all the time.



Azure Active Directory External Identities
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 55,416 Reputation points

    Hi @Veyselddd

    • If the domain is federated, you need to convert the domain to standard by Running below cmdlet on the ADFS Server:

    Convert-MsolDomainToStandard -DomainName -SkipUserConversion:$true -PasswordFile C:\pwd.txt

    • If AD Connect is synchronizing users with UPN suffix of, disable directory synchronization by using below cmdlet:

    Set-MsolDirSyncEnabled -EnableDirSync $false

    • Change all UPNs to use domain suffix

    Get-MsolUser -All | foreach {Set-MsolUserPrincipalName -ObjectId $_.ObjectId -NewUserPrincipalName ($_.UserPrincipalName.Split(“@”)[0] + “”)}

    • If any distribution groups are using in email address, you need to change that to use domain suffix as well:

    Get-DistributionGroup -ResultSize Unlimited | ForEach {Set-DistributionGroup -Identity $_.Name -primarysmtpaddress ($_.primarysmtpaddress.Split(“@”)[0] + “”)}

    • Run below cmdlet to confirm if no user is using in email address:

    Get-MsolUser -DomainName -all

    If any user is still using the custom domain, change/remove that.

    • Now you can try transferring the domain again. Alternatively, you can remove the domain by using below cmdlet and add it to another tenant.

    Remove-MsolDomain -DomainName -Force


    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.