Forum Discussion

davgal's avatar
davgal
Copper Contributor
May 28, 2020

Bulk change username

Hi,

Is it possible to change the username of multiple users in Office 365? Not the users domain but the username.

Is it possible doing it in the Office 365 admin center or in other way?

2 Replies

  • Hellodavgal ! 
    Changing the Domain suffix is easy to do in bulk
    However, changing the Alias part of the username in bulk takes a bit more. 

    You'll need to prepare some CSV files in order to match what username you want to set for what user. 
    then do a foreach loop to change it in bulk. 

     

    Takes some preperation and altering to get it right. 

     

    Let me know if you need guidance. 

    PS use the whatif switch before to see what exactly will change 🙂 

     

    KR
    Oliwer Sjöberg

    • davgal's avatar
      davgal
      Copper Contributor

      Hi oliwer_sundgren 

      and thanks for your reply!

       

      what I need to do is change current usernames in Office 365, for example from mailto:dave.gal@contoso.com to mailto:m0001@contoso.com. This for 500 user.

      Should I use powershell for the foreach loop? Must the csv only have the old username and the new one?

       

      Thanks!