Generate Transfer Token

Generate a Transfer Token in Microsoft 365

  1. Install Microsoft Graph PowerShell SDK (if not installed):

Install-Module Microsoft.Graph -Scope CurrentUser
  1. Connect to Graph:

Connect-MgGraph -Scopes "Domain.ReadWrite.All", "Directory.AccessAsUser.All"
  1. Generate the transfer token:

$domainName = "yourdomain.com"
$token = New-MgDomainTransferToken -DomainId $domainName
$token.Value

Where to Use the Token

Important Notes:


Use the Transfer Token in the Target Tenant

Step 1: Sign into the Microsoft 365 Admin Center of the target tenant

Step 2: Add the domain using the token

  1. In the left sidebar, go to: SettingsDomains → Click “Add domain”

  2. Enter the domain name you want to transfer (e.g., yourdomain.com)

  3. The system will detect that the domain is in use elsewhere and prompt:

    "This domain is already being used in another tenant. You can request a transfer using a transfer token."

  4. You'll be asked: "Do you have a transfer token?"

    • Click “Yes”

    • Paste the transfer token you got from the source tenant PowerShell

  5. Microsoft will now validate the token.

    • If valid, the domain will be queued for transfer.

    • Microsoft will release the domain from the old tenant and bind it to the new one.

Step 3: Wait for the transfer to complete

  • This can take anywhere from a few minutes to several hours depending on DNS propagation and Microsoft’s backend checks.

  • You'll receive confirmation once the domain has been successfully added to the new tenant.

Important Final Checks


REFERENCES

Last updated

Was this helpful?