Oct 11 2023 03:12 PM
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?
Oct 12 2023 02:46 AM - edited Oct 12 2023 02:48 AM
I just checked on our SharePoint tenant and I am able to see this option for document libraries.
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.
Documentation: Set-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.
Oct 16 2023 10:38 PM
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?
Oct 16 2023 10:48 PM
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.
Oct 16 2023 11:02 PM
Oct 17 2023 05:29 AM
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.
Oct 17 2023 03:29 PM
Oct 16 2023 10:48 PM
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.