Sharepoint 2019 Hybrid Onedrive - User redirection not working

Jussi Lehti 601 Reputation points
2021-10-12T11:10:25.99+00:00

Just configured Hybrid Onedrive successfully to new Sharepoint 2019 farm and confirmed that the redirection to Sharepoint Online works when clicking on the Onedrive button from the waffle or from top right corner from your profile picture.

But our client has also this site which contains a "phonebook" which is basically a search query webpart that returns users with their name, phonenumber, department etc.

When I click the name of the user from those results, I will go to this url:

https://domain-my.sharepoint.com/Person.aspx?accountname=DOMAIN\user  

...which is the "mysite" location in Sharepoint Online pointing to an accountname where the accountname is in sAMAccountName format.

Okay, so the browser prompts for credentials to login to Sharepoint Online and the user will input their UPN (firstname.lastname@keyman .sharepoint.com) and then they will see an error which states that User not found.

Need help asap please.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,206 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,560 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,794 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yi Lu_MSFT 17,456 Reputation points
    2021-10-14T10:02:39.723+00:00

    Hi anonymous user
    This issue is a bit complicated,I cannot reproduce the issue in my end. If you want to get a certain confirmation, I suggest you open a ticket with Microsoft to confirm.


    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.


  2. Jussi Lehti 601 Reputation points
    2021-10-15T07:36:57.843+00:00

    I tried to sync a library from Sharepoint 2019 to Onedrive app in a laptop and there's the same problem.

    1. User has logged in to the laptop with sAMAccountName = DOMAIN\username
    2. Then he logged in to the Onedrive app in the laptop with his O365 account e.g. User Principal Name = firstname.lastname@keyman .com
    3. Then he opened Sharepoint 2019 and navigated to a library and clicked Sync
    4. Onedrive throws an error that says something like "Unfortunately couldn't sync the folder. Contact your IT Administrator, if you want to configure Onedrive to sync local SharePoint-folders."
    5. Then user closes that error window and clicked again the Sync button in the library and now Onedrive client prompts for login for the DOMAIN\username. So here we can see the same pattern: It does not recognize the AD-account (DOMAIN\username) and the O365-account (UserPrincipalName) as the same account.
    6. Our client (who manages their O365 environment) has told me that those profiles are cloud synced, but could there be something wrong with their AD Connect or somewhere else than Sharepoint?
    0 comments No comments

  3. Jussi Lehti 601 Reputation points
    2021-10-18T14:23:50.747+00:00

    Found it, apparently you need to config the Onedrive client via registry/gpo before it can work in a Hybrid solution.

    https://learn.microsoft.com/en-us/sharepoint/install/new-onedrive-sync-client

    Can some tell me why the hell this is not included or even referred in the Configure hybrid Microsoft Onedrive-article ?
    https://learn.microsoft.com/en-us/sharepoint/hybrid/configure-hybrid-onedrive-for-business

    This took too much hours to solve for such a simple solution that could've been just even referred in that above article that I've read about hundred times now.

    0 comments No comments