none
Account name is not correct as per AD in User Profile Service SharePoint 2010 RRS feed

  • Question

  • A user whose UPN in Active Directory is like domain\first.last2. But when this user is synced with User Profile its Account Name is changed to domain\first.last. How can I diagnose the exact issue with User Profile in SharePoint 2010?
    Monday, August 26, 2019 2:41 PM

All replies

  • The AccountName property is a combination of the NetBIOS domain name and sAMAccountName, not UPN.

    Trevor Seward

    Office Apps and Services MVP



    Author, Deploying SharePoint 2019

    Author, Deploying SharePoint 2016

    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

    Monday, August 26, 2019 7:21 PM
    Moderator
  • Hi qazxswedcvfer ,

    As Trevor says, accountName property is not UPN.

    When you make the correct changes to user properties in AD, run full crawl and then execute the power shell command, which can be displayed correctly in your site.

    Run below command in SharePoint Management Shell to sync user information from AD if Display name or other information have changed except Account name in AD:

    Set-SPUser -Identity 'Contoso\userAccount' -Web http://siteA -SyncFromAD

    Run Move-SPUser if account name has been changed in AD.

    Move-SPUser –Identity "DOMAIN\OldUserName" –NewAlias "Domain\NewUserName"

    For more information you can refer to the article below:

    https://www.sharepointdiary.com/2013/01/user-login-name-changed-in-ad-how-to-sync-with-sharepoint.html

    Best regards

    Itch Sun


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.


    Tuesday, August 27, 2019 1:59 AM
  • Hi ,

    Has the problem been solved?

    If you think the replies are helpful to you, please remember to mark them as answers. It will help others who meet the similar question in this forum.

    Thank you for your understanding.

    Best regards

    Itch Sun


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, September 2, 2019 9:36 AM
  • Hi ,

    I'm still paying attention to this issue.

    If you think the replies are helpful to you, please remember to mark them as answers. It will help others who meet the similar question in this forum.

    Looking forward to your update on this issue.

    Best regards

    Itch Sun


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, September 3, 2019 8:54 AM