How do I change the user's Office 365 UserPrincipalName (UPN)?

For Office 365.  

Question:

How do I change the user's Office 365 UserPrincipalName (UPN)?

Answer:

The existing user’s UPN (Office 365 ID) cannot be changed in the HDE Access Control Service(「HAC」). In order to change it, [creation of a new user-account] is required

This UPN change procedure differs depending on the way of introduction structure or account synchronization. Please refer to the information below.

*If you are not so certain about the details of sync structure or else, please send us the setup file of the HDE One Directory Sync module so that we can confirm the details.

Setup file path for HDE One Directory Sync

C:/Program Files/HDE One Directory Sync/config.ini

In AD-Collaboration Case(※Account Sync direction:AD→HAC)

1.Suspend the [HDE One Directory Sync module service](※only when using the automatic execution)

2.Change [User Logon Name] (UPN) on AD

3.Restart the [HDE One Directory Sync Module service].(※only when using the automatic execution)

*When the Key to specify the internal AD and the HAC user account is [UPN], the account with the old UPN will be automatically deleted and the account with the new UPN will be created automatically.

 

In Non AD-Collaboration Case(※Account Sync direction:HAC→Office 365)

1.Suspend the [HDE One Directory Sync module service](※only when using the automatic execution)

2.Change [Office 365 ID (UPN)] from Office 365 (Admin) console.

*For Your Reference: How to change the UPN with PowerShell Command.
PS> Connect-MsolService
PS> Set-MsolUserPrincipalName -NewUserPrincipalName 【UPN after the change】-UserPrincipalName 【UPN before the change】

3.Delete the user account with the old Office 365 ID (UPN)

4.Create the user account with the new Office 365 ID (UPN)

5.Run the Sync tool in test mode and confirm that the intended user does not show up in the list.

*For Your information: Execution Command of Sync Module in test mode (command prompt)
    cd "C:\Program Files\HDE One Directory Sync".\console.exe /n

*There are some users who have the same Office 365 ID (UPN) UPN both in Office 365 and HDE, please be careful so as not to delete/add the intended user.

6.Run the Sync tool in the production mode to sync the internal parameter.

*For Your Reference: Execution Command of Sync Module in production mode (command prompt)
cd "C:\Program Files\HDE One Directory Sync".\console.exe

*However the execution result should be “no sync”, this internal parameter sync is required.
So please never forget this step to run the sync module in production mode.

7.Start the HDE One Directory Sync module service(※only when using the automatic execution)

          
Was this article helpful?

Frequently Asked Questions (FAQs)

Powered by Zendesk