Update User Email ID using PowerShell in SharePoint 2013/2016

This SharePoint 2013 tutorial, we will discuss how to update user email id using PowerShell and using SharePoint central administration in SharePoint 2013/2016.

We were not able to trigger email because of User profile Email-ID mismatched with Active Directory. We will see how to update user email id using PowerShell in SharePoint 2013/2016.

To fix this issue we can update the user email-id in 2 ways:

  • Update Email-ID in User Profile Service Application through Central Administration
  • Update Email-ID using PowerShell

Update Email-ID in User Profile Service Application through Central Administration

Update Email-ID in User Profile Service Application through SharePoint Central Administration, follow the below steps to update email-id of the user.

Log-on to the application server with a FARM admin account. Open the Manage service applications.

how to update sharepoint user email address using powershell

Click on “User Profile Service Application”.

update user email id using powershell sharepoint

Click on “Manage User Profiles”.

update user email id using powershell sharepoint 2013

Enter the user-id and click on the “Find” button.

update user email id using powershell sharepoint 2016

You should be able to see the user details and incorrect email-id.

how to update sharepoint user email address

Click on “Edit My Profile”.

how to update user email address sharepoint 2016

Enter the updated email as part in “Work Email” property and click on “Save and Close” button.

how to update user email address sharepoint 2013

Update Email-ID using PowerShell in SharePoint 2013/2016

As we all know we can do any operation using PowerShell commands. Here is the script to update the email-id property of the user in SharePoint using PowerShell.

Syntax:
$user = Get-SPUser -Identity <domain\user-id> -Web <"Web Application URL">
$user | Select UserLogin,DisplayName,Email

Set-SPUser -Identity <domain\userId> -Email <email-id> -Web <"Web Application URL">

Example:
$user = Get-SPUser -Identity "corp\krishna" -Web http://contoso.com:9535/
$user | Select UserLogin,DisplayName,Email

Set-SPUser -Identity "corp\NBKXUAR" -Email "Krishna.vandanapu@contoso.com" -Web http://contoso.com:9535/

You may like following SharePoint tutorials:

This SharePoint tutorial explains, how to update user email id using PowerShell and from SharePoint 2013 central administration.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>