Update User Email-ID using PowerShell in SharePoint 2013

how to update user email address sharepoint 2013

Scenario:
In this article, I would like to discuss not able to trigger email because of User profile Email-ID mismatched with Active Directory. We will see how we can update user email id using PowerShell in SharePoint 2013.


Solution:
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

Approach 1:
Update Email-ID in User Profile Service Application through Central Administration, follow the below steps to update email-id of the user.
1. Log-on to application server with FARM admin account
2. Open the Manage service applications

update-user-email-id-using-powershell
update-user-email-id-using-powershell

3. Click on “User Profile Service Application”

update user email id using powershell sharepoint
update user email id using powershell sharepoint

4. Click on “Manage User Profiles”

update user email id using powershell sharepoint 2013
update user email id using powershell sharepoint 2013

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

update user email id using powershell sharepoint 2016
update user email id using powershell sharepoint 2016

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

how to update sharepoint user email address
how to update sharepoint user email address

7. Click on “Edit My Profile”

how to update user email address sharepoint 2013
how to update user email address sharepoint 2013

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

how to update user email address sharepoint 2016
how to update user email address sharepoint 2016

Read some SharePoint 2013 tutorials:

Approach 2:
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.

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/



Enjoy the features of SharePoint  !!!!

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials:

About Krishna Vandanapu

I am Krishna.Vandanapu a SharePoint architect working in IT from last 12 years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019

View all posts by Krishna Vandanapu →