SOLVED

"Add Shortcut to OneDrive" missing from SharePoint sites recently

Brass Contributor

Hi all, I noticed today that the "Add Shortcut to OneDrive" button is no longer appearing as an option on top of document libraries - even from ones I have existing OneDrive shortcuts to... Did something change? 

 

2023-10-11_15-05-13.png

6 Replies

@mdcastorena 

 

I just checked on our SharePoint tenant and I am able to see this option for document libraries.

 

  1. Is this missing in all document libraries in a single SharePoint site?
  2. Is this missing in all document libraries from all sites in the tenant?

Maybe this was disabled by tenant administrator for your SharePoint tenant. You can enable it using PnP PowerShell commands like: 

 

Connect-PnPOnline -Url "https://contoso-admin.sharepoint.com/" -Interactive
Set-PnPTenant -DisableAddToOneDrive $false

 

Note: You need to run these commands using SharePoint tenant administrator account.

 

DocumentationSet-PnPTenant 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Hi @ganeshsanap - thank you for the reply! 

 

I wasn't having luck authenticating to the SPO Module with your first command, but did finally get authenticated with one of the last commands in my screenshot. However, I am getting a syntax error for your second command. Any suggestions? 

 

2023-10-16_22-36-55.png

best response confirmed by mdcastorena (Brass Contributor)
Solution

@mdcastorena The PowerShell commands I provided in above response are not related to SPO PowerShell Module. You can run those using PnP PowerShell module after installation as given here: Installing PnP PowerShell 

 

However, if you want to use SPO module only, try using this: 

 

Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential email address removed for privacy reasons

Set-SPOTenant -DisableAddShortcutsToOneDrive $false

 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Ah, thank you. So I tried the SPO way and the command completed successfully; however, the "Add Shortcut to OneDrive" option did not appear on a site I know it should. Is there a delay?

I tried the PnP way, but still having trouble getting authenticated correctly.

@mdcastorena 

 

Wait for sometime and try refreshing the document library page or try opening the document library in private browser window and see if it works.


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Awesome! It just took some time. I now see the "Add Shortcut to OneDrive" option in our libraries. Thank you so much.
1 best response

Accepted Solutions
best response confirmed by mdcastorena (Brass Contributor)
Solution

@mdcastorena The PowerShell commands I provided in above response are not related to SPO PowerShell Module. You can run those using PnP PowerShell module after installation as given here: Installing PnP PowerShell 

 

However, if you want to use SPO module only, try using this: 

 

Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential email address removed for privacy reasons

Set-SPOTenant -DisableAddShortcutsToOneDrive $false

 


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

View solution in original post