Accessing a SharePoint link with email authentication

What is the problem you are having with rclone?

A small company where I’m a customer has a SharePoint where I can upload documents to them through a web interface, accessed through a link like this:

https://xxxxxx.sharepoint.com/:f:/s/Kundenakten/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx?email=fredrik%40roubert.name&e=xxxxxx

That link leads to a Request Verification Code dialog box with a Send Code button, which sends me an email with “12345678 is your Microsoft SharePoint verification code”, which I then can use to access the SharePoint web interface.

Now it would be very convenient for me if I instead of the web interface could sync my files between by local machine and that SharePoint using rclone, but I’m having a hard time finding any documentation about whether this is or isn’t possible to do (and how to do it, if possible).

I’ve been able to find only one single forum post that seems to be about exactly the same thing which I want to do, but that thread was in the end closed without any resolution, especially without any clear answer explaining that this is something that’s not possible to do with rclone:

Does anyone know if this is at all possible to do with rclone?

Note that I don’t have any user account in the SharePoint that I want to access. If I do the web interface email login (as described above) and there click on the little round account icon in the upper right corner of the web interface and then click on My account in the drop-down there, that results in this error message from Microsoft:

Selected user account does not exist in tenant 'xxxxxx' and cannot access the application '8c59ead7-d703-4a27-9e55-c96a0054c8d2' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account.

But for uploading and downloading files through the web interface that doesn’t seem to matter in any way, so it doesn’t seem unlikely to me that rclone would be able to support that (if I could only figure out how to configure it properly). This also means that I can’t access these files through my own OneDrive account (which otherwise would seem like an obvious workaround).

Run the command 'rclone version' and share the full output of the command.

rclone v1.72.1

  • os/version: debian forky/sid (64 bit)
  • os/kernel: 6.17.13+deb14-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.25.5
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

SharePoint