Jegan Baskaran

Jegan Baskaran

  • 2k
  • 8
  • 398

PowerShell script to replace a user Identity

May 31 2020 11:40 PM

I'm having SharePoint 2016 On-premise environment, now we have a requirement as follows.

we have nearly 100 SharePoint Groups, where we had already have many user's identity added as DOMAIN\username ,now we want to add their full Email ID username@company.com to connect the site with Azure AD. In other words, in each group we need to take a list of existing user IDs (DOMAIN\username)and add a new Identity( username@company.com )for each user in the same group.

Initially we started adding the IDs manually, but its time taking process.

can anyone please suggest a power shell script to complete this activity easily.


Brought to you by:

Answers (2)