Migrate Custom Domain Name from AAD with Self-Service Users

Jesse 1 Reputation point
2020-11-19T21:42:03.05+00:00

I haven't been able to find much information about this scenario so any help is appreciated. I want to migrate the custom domain on one tenant to a new tenant. Users have been created in our current tenant through self-service (creation type: emailVerified; Source: Azure Active Directory (self-service)). According to Microsoft’s documentation, I have to ensure no resources are using the domain name before being able to delete the custom domain name from the tenant. For the users were created through self-service, I am unable to modify their upn to the ‘onmicrosoft’ address. Is my only option to delete those users?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,116 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Cristian SPIRIDON 4,481 Reputation points
    2020-11-19T23:13:09.91+00:00

    You can update users UPN with following powershell command:

    Get-AzureADUser -ObjectId 22764580-e033-ff33-88c9-dc21df5670ee | Set-AzureADUser -UserPrincipalName 'username@yourcompany.onmicrosoft.com'
    

    You have to replace the object id with your users object id.

    Hope this helps.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.