derrix060 / onedriveClient

A Microsoft OneDrive and OneDrive for Business client for Linux, written in Python3.
MIT License
65 stars 10 forks source link

Adding drives via "Sync" in SharePoint #48

Open asppsa opened 5 years ago

asppsa commented 5 years ago

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?

derrix060 commented 5 years ago

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.

abraunegg commented 4 years ago

@asppsa Might be worth looking at this: