Batch edit accounts username

曾銘康 TSANG MING HONG 21 Reputation points
2020-08-26T08:44:59.353+00:00

Instead of changing it one by one, Are there any method, such as export and import, to edit many accounts' username at once?

https://learn.microsoft.com/zh-tw/microsoft-365/admin/add-users/change-a-user-name-and-email-address?view=o365-worldwide

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,166 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 94,911 Reputation points MVP
    2020-08-26T09:11:50.627+00:00

    Yes, you can easily do this via PowerShell or the Graph API. If you want an example, you need to tell us which property specifically you are looking to change and sample values.

    The M365 admin portal and the EAC allow you to perform batch operations:

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 曾銘康 TSANG MING HONG 21 Reputation points
    2020-08-26T10:13:16.603+00:00

    Thanks for replying!!

    Here is an example of my situation.
    I need to change the surnames of many accounts to capital letters. such as:
    acc 1. Chan > CHAN
    acc 2. Lee > LEE
    acc 3. Wong > WONG
    ...

    How should I do?