One of our partners share sensitive documents with us using a onedrive. the url has the following format: https://ABC-my.sharepoint.com/personal/XYZ/_layouts/15/onedrive.aspx
where ABC is the domain and XYZ is the name of the ownerofdrive_nameofcompany_be.
I can see the content of the drive and download files using the browser. I login using an account provided by them firstname.lastname@example.org. with 2FA using my phone. (sms)
Using the onedrive remote and choosing option for onedrive personal or buisiness I get a forbidden error. searching for the site doesn't work as it doesn't show up. If I try to put the site url directly I get a bad request error.
Looking at rclone docs I saw that webdav is also a viable option. Since the url matches what's mentioned in webdav docs for sharepoint online:
However it's not my email address that shows up in the url but the owner of the onedrive drive with underscores as delimiters and no @ sign.
Connecting using webdav doesn't work as 2FA is enabled I contacted the partner company but they refuse to generate an app password as it defies their security guidlines.
Honestly I'm stuck I've tried everythin I could. but I can't circumvent the app password.
Can someone suggest how to do this? any other option I can try?
$ rclone version
- os/version: Microsoft Windows 10 Pro 21H2 (64 bit)
- os/kernel: 10.0.19044.1766 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.9
- go/linking: dynamic
- go/tags: cmount
rclone lsd remote:
[remote] type = webdav url = https://ABC-my.sharepoint.com/personal/XYZ/Documents vendor = sharepoint user = REDACTED pass = REDACTED
$ rclone lsd -vv remote: 2022/07/08 12:29:45 DEBUG : rclone: Version "v1.58.1" starting with parameters ["C:\\Windows\\rclone.exe" "lsd" "-vv" "remote:"] 2022/07/08 12:29:45 DEBUG : Creating backend with remote "remote:" 2022/07/08 12:29:45 DEBUG : Using config file from "C:\\Users\\H.AB\\AppData\\Roaming\\rclone\\rclone.conf" 2022/07/08 12:29:45 DEBUG : found headers: 2022/07/08 12:29:48 Failed to create file system for "remote:": wst:FailedAuthentication: Authentication Failure (AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access ''.)