Bulk change username

%3CLINGO-SUB%20id%3D%22lingo-sub-1423369%22%20slang%3D%22en-US%22%3EBulk%20change%20username%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1423369%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20change%20the%20username%20of%20multiple%20users%20in%20Office%20365%3F%20Not%20the%20users%20domain%20but%20the%20username.%3C%2FP%3E%3CP%3EIs%20it%20possible%20doing%20it%20in%20the%20Office%20365%20admin%20center%20or%20in%20other%20way%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1423369%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1423510%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20change%20username%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1423510%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F634452%22%20target%3D%22_blank%22%3E%40davgal%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%3CBR%20%2F%3EChanging%20the%20Domain%20suffix%20is%20easy%20to%20do%20in%20bulk%3CBR%20%2F%3EHowever%2C%20changing%20the%20Alias%20part%20of%20the%20username%20in%20bulk%20takes%20a%20bit%20more.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EYou'll%20need%20to%20prepare%20some%20CSV%20files%20in%20order%20to%20match%20what%20username%20you%20want%20to%20set%20for%20what%20user.%26nbsp%3B%3CBR%20%2F%3Ethen%20do%20a%20foreach%20loop%20to%20change%20it%20in%20bulk.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETakes%20some%20preperation%20and%20altering%20to%20get%20it%20right.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20you%20need%20guidance.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EPS%20use%20the%20whatif%20switch%20before%20to%20see%20what%20exactly%20will%20change%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKR%3CBR%20%2F%3EOliwer%20Sj%C3%B6berg%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1423984%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20change%20username%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1423984%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eand%20thanks%20for%20your%20reply!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhat%20I%20need%20to%20do%20is%20change%20current%20usernames%20in%20Office%20365%2C%20for%20example%20from%20%3CA%20href%3D%22mailto%3Adave.gal%40contoso.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edave.gal%40contoso.com%3C%2FA%3E%26nbsp%3Bto%20%3CA%20href%3D%22mailto%3Am0001%40contoso.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Em0001%40contoso.com%3C%2FA%3E.%20This%20for%20500%20user.%3C%2FP%3E%3CP%3EShould%20I%20use%20powershell%20for%20the%20foreach%20loop%3F%20Must%20the%20csv%20only%20have%20the%20old%20username%20and%20the%20new%20one%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

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
Highlighted

Hello@davgal ! 
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

Highlighted

Hi @oliwer_sjoberg 

and thanks for your reply!

 

what I need to do is change current usernames in Office 365, for example from dave.gal@contoso.com to 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!