How to hide the sync button but be able to add a shortcut to Onedrive

Zoey Liang 165 Reputation points
2023-08-04T05:42:27.35+00:00

How to hide the sync button but be able to add a shortcut to Onedrive

User's image

Microsoft 365 and Office SharePoint For business Windows
{count} votes

Accepted answer
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-08-04T07:32:54.5666667+00:00

    Hi @Zoey Liang,

    Thank you for posting in this community.

    1.Hide the Sync button.

    Please click on the gear in the upper right corner ->Library Settings->More library settings->Advanced settings->set Offline Client Availability to no.

    User's image

    2.Add a shortcut to Onedrive.

    I noticed that you already have a shortcut to OneDrive button in your document library.

    User's image

    According to this article, this feature isn't available for individual files. Only can add a shortcut for folders.

    The method of adding A is also provided here for your reference:

    You can use PowerShell script to enable the Add shortcut to OneDrive feature.
    If you are new to SharePoint Online Management Shell, you can refer to this article for a quick start:

    Get started with SharePoint Online Management Shell

    Here is the PowerShell script:

    #Connect to your SharePoint Online
    Connect-SPOService "https://yourdomain-admin.sharepoint.com"
     
    #Disable "Add Shortcut to OneDrive"
    Set-SPOTenant -DisableAddShortCutsToOneDrive $False
    

    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.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Santo Montecalvo 10 Reputation points
    2024-04-09T21:01:41.18+00:00

    Anyone ever get an answer to this?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.