question

JASIDKHAN-2335 avatar image
0 Votes"
JASIDKHAN-2335 asked JimmyYang-MSFT commented

Bulk Change in Microsoft Teams user's names.

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.



office-teams-windows-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered JimmyYang-MSFT commented

Hi @JASIDKHAN-2335

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.



14.png (11.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JASIDKHAN-2335

Is there any update on this case?
Please feel free to drop us a note if there is any update.
Have a nice day

0 Votes 0 ·

Hi @JASIDKHAN-2335

Haven't received your message for a long time.

Do you have any further issue on this topic? If the reply is helpful to you, you can try to mark it as a answer to close the thread.

0 Votes 0 ·