- Login to OneDrive and under 'Shared Libraries' obtain the shared library name
- Run the following command using the 'onedrive' client
onedrive --get-O365-drive-id '<your library name>'
- This will return the following:
Initializing the Synchronization Engine ...
Office 365 Library Name Query: <your library name>
SiteName: <your library name>
drive_id: b!6H_y8B...xU5
URL: <your site URL>
Once you have obtained the 'drive_id' above, add to your 'onedrive' configuration file (~/.config/onedrive/config
)the following:
drive_id = "insert the drive id from above here"
The OneDrive client will now sync this SharePoint shared library to your local system.