I use rclone to connect our end-users to their OneDrive business drives. The rclone.conf files consist of just:
[OneDrive]
type = onedrive
drive_type = business
When a user wants to connect to their onedrive, they run a script that runs
rclone.exe config update OneDrive
...which opens a browser for them to type in their username and password.
Once authenticated, their H: drive mounts their OneDrive documents folder.
This has worked perfectly for everyone until today. I tried connecting by this method as a test, but instead of the documents I expected, I got a folder full of .backup files. I came to find rclone was connecting to
https://wmedu-my.sharepoint.com/personal/my_user/PreservationHoldLibrary
instead of
https://wmedu-my.sharepoint.com/personal/my_user/Documents
In running through the entire process (rclone config) as a test, I came to this prompt:
Option config_driveid.
Select drive you want to use
Choose a number from below, or type in your own string value.
Press Enter for the default (drive_id1).
1 / OneDrive (business)
\ (drive_id1, the drive_id for the /PreservationHoldLibrary subfolder)
2 / OneDrive (business)
\ (drive_id2, the drive id I actually want, for the /Documents subfolder)
config_driveid>
So, rclone config update OneDrive is selecting the wrong drive because that is listed as the default. When I go through the entire rclone config manually, I can select the correct drive (selection 2) and all is well.
This seems to be only a problem for me, now, but I am worried this may happen for other users. Is there a way to get back my /Documents as the default in this prompt and/or suppress /PreservationHoldLibrary as an option?
UPDATE: this is due to a setting the OneDrive/M365 folks changed to preserve user files from accidental deletion. So the question becomes is there a way to get rclone to automatically select the correct /Documents drive_id, or do I need to approach the other team and tell them to change back the setting?