Bulk Change in Microsoft Teams user's names.

JASID KHAN 1 Reputation point
2021-04-02T06:38:36.35+00:00

Hi There
I want to make bulk changes in the user's display name as I am in school so display names are like name_class_sec example Bob VI B so as they passed in the current class and promoted to the next class.
so changes will be like Bob VII B in various classes I want to change their display names, so please suggest to me an easy and smart way to do so in MS-Teams.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,067 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmyYang-MSFT 48,866 Reputation points Microsoft Vendor
    2021-04-02T08:15:33.257+00:00

    Hi @JASID KHAN

    According to your description, you may try to perform the following steps to change display name of bulk users:

    1.Install PowerShell Office 365.

    2.Open an elevated Windows PowerShell command prompt (run Windows PowerShell as an administrator).

    3.In the Administrator: Windows PowerShellcommand window, run this command:

    Install-Module -Name AzureAD  
    

    If prompted about installing a module from an untrusted repository, type Y and press ENTER.

    4.Connect to Azure AD for your Office 365 subscription. Run following cmdlet and Sign in with Office 365 global admin center.

    Connect-MsolService  
    

    5.Create an Excel file with the following format and save in: C:\Users\test1.csv
    83840-14.png

    6.Enter in PowerShell:

        Import csv C:\Users\test1.csv |  
             ForEach-Object{   
                  Set-MsolUser -UserPrincipalName $_.UserPrincipalName -DisplayName $_.DisplayName  
          }  
    

    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.