Rejoined Users Can't Sync to Document Libraries in SharePoint Server 2019

asked 2021-11-13T12:58:38.967+00:00
Changlai Sun 1 Reputation point

Hello, I am an IT admin in our company using SharePoint Server 2019, we have recently met a strange issue where some particular user can't use the new OneDrive Sync to sync any document libraries... Two days ago one of our users with the right privileges in Active Directory finds that they can't access the desired remote location, after several failed attempts to fix this we deleted their account and configured a new one with the same sAMAccountName and userPrincipalName, and they can access that location as normal. The problem happens when they are trying to sync the public document library in SharePoint Server, OneDrive Sync opens up as normal but after login and choosing local folder they get "Sorry, OneDrive can’t add your folder right now." error, while other users including a new user can sync as normal. I have checked this link and it didn't solve the problem (since others can sync).

We have tried updating their account information from the Active Directory using:

Set-SPUser -Identity "<corpname>\<username>" -Web "https://<url>" -SyncFromAD  

And the problem persists, then we tried removing their SharePoint account using:

Get-SPSite "https://<url>" | Get-SPWeb | Remove-User "<corpname>\<username>"  

Which still didn't solve the problem. Is there a way to solve this without creating another account with another account name?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
1,434 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,353 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. answered 2021-11-13T21:22:44.257+00:00
    Deyolan Pillay 76 Reputation points

    This happens quite frequently in my organization and it’s mainly to do with Windows updates and having more than one profile signing into one drive.

    I would first check that the users Windows is upto date

    Then check that there are no contradicting profiles

    If the issue is not resolved then you may have to create a sub account and link to original account to gain access to relevant folders

    No comments

  2. answered 2021-11-15T07:23:59.98+00:00
    CaseyYang-MSFT 10,291 Reputation points

    Hi @Changlai Sun ,

    You could try to delete user from User Information list then grant user permission again.

    User Information list url:

    http://your-sharepoint-site/_layouts/people.aspx?MembershipGroupID=0  
    

    Select user > Click Actions > Delete User from Site Collection

    149323-1.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.