Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.
Microsoft cloud engineer - SharePoint, Office 365, Azure, DotNet, Angular, JavaScript.

ODOPEN – Onedrive Open Protocol

Recently I had F12 network trace open and launch OneDrive “Sync” button from SharePoint Modern pages toolbar.   A strange protocol showed on the network activity.  Not HTTP or HTTPS, but “ODOPEN://”

Application launcher custom URL prefixes enable web browsers to handoff to local desktop applications.   Here, ODOPEN is One Drive Open and activates the OneDrive client by passing parameters for the scope destination document library to sync.

Parameters are enumerated below in the Code section.   GUID for the scope (Site / Web / Library) identify the target data.   Current user detail is passed with user GUID and user Email.  Interesting to see how the “Sync” button works internally and wanted to share notes.

Cheers  

shades_smile

Video

Code

odopen://sync?userId=45f4af2f-e9e9-48a9-93c5-00df32aa7488&
userEmail=spjeff@spjeff.com&
isSiteAdmin=1&
siteId={07a88858-981d-4465-b36b-52ae6065d6b0}&
webId={c1c208d9-5b06-4703-981c-f6240fb45c4d}&
webTitle=Jeff Jones&
webTemplate=21&
webLogoUrl=_layouts/15/images/siteicon.png&
webUrl=https://spjeff-my.sharepoint.com/personal/spjeff_spjeff_com&
onPrem=0&
libraryType=1&
listId={9CBDD007-6D00-4F69-8D2C-BDD10D95F518}&
listTitle=Documents&
scope=OPENLIST

Screenshots

image

References

  • None found yet

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲