onedriveClient icon indicating copy to clipboard operation
onedriveClient copied to clipboard

Adding drives via "Sync" in SharePoint

Open asppsa opened this issue 6 years ago • 2 comments

This is using the #26 branch ...

If I go into the Sharepoint web interface for my organisation and click the "Sync" button, I see the following message:

image

The "Copy library ID" link in that box when clicked inserts a WWW-form encoded string into the clipboard, like the following (this is a fake with sensitive data removed):

tenantId=26aa910b-77f6-4f02-bcf0-760df99e7ff4&siteId=%7B62bb49d9-7d20-45d5-8324-d0c3fb762e00%7D&webId=%7Bdb184d3f-4920-4b9f-a607-98127ee7a3e4%7D&listId=%7B6f683863-4761-4d00-92c7-8d8b5eec850c%7D&webUrl=https%3A%2F%2Fsomesite.sharepoint.com&version=1

The tenantId looks like a plain UUID. The siteId, listId and webId all look like UUIDs enclosed in curly braces. I think this is a Sharepoint ID? I was wondering if you think it would be feasible to add something like a --library-id option to onedrive-client-pref drive set in order to use SharePoint drives?

asppsa avatar Apr 16 '19 06:04 asppsa

Hello @asppsa! I've never used a sharepoint drive before, but I can look at this if I'm able to create one driver for myself. Also fell free to create a PR if you are able to implement it.

derrix060 avatar Apr 16 '19 19:04 derrix060

@asppsa Might be worth looking at this:

  • https://abraunegg.github.io/
  • https://github.com/abraunegg/onedrive/

abraunegg avatar Jun 25 '20 20:06 abraunegg