Rclone Version
rclone v1.75.0
os/version: Microsoft Windows 11 Home Single Language 25H2 25H2 (64 bit)
os/kernel: 10.0.26200.8875 (x86_64)
os/type: windows
os/arch: amd64
go/version: go1.26.5
go/linking: static
go/tags: cmount
Remote configuration
[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
Problem
Rclone copy fails with "Failed to copy: unauthenticated: Unauthenticated" for every file when copying directly from a shared OneDrive folder into my own OneDrive.
The source folder belongs to another Microsoft Personal account and is shared with me using "Add shortcut to My files".
For example:
rclone copy \ "onedrive:Photos Test/DSC_0001.JPG" \ "onedrive:TestCopy" \ -vv
Result: ERROR : DSC_0001.JPG: Failed to copy: unauthenticated: Unauthenticated
Troubleshooting performed
- List Directories -> works
rclone lsd "onedrive:Photos Test/"
-
Listing metadata -> Works
rclone lsjson "onedrive:Photos Test" --metadata -
Reading file contentes -> Works
rclone cat "onedrive:Photos Test/DSC_0001.JPG" -
Copying from shared OneDrive to local disk -> Works
rclone copy \ "onedrive:Photos Test/DSC_0001.JPG" C:\Temp\Test -
Uploading local files to my OneDrive -> Works
echo test>test.txt
rclone copy test.txt onedrive:TestCopy
Summary
So only direct transfer from Mapped Shared OneDrive Folder -> MyOnedrive will fail.
Shared OneDrive folder ("Add shortcut to My files")
↓
rclone copy
↓
My OneDrive
Additional Observations:
- Using --server-side-across-configs does not change the behavior.
- Disabling multithread streams (--multi-thread-streams 0) also makes no difference.
- Reauthenticating with
rclone config reconnect onedrive:does not solve the problem.
HTTP Trace
The metadata request succeeds:
GET /v1.0/drives/<owner_drive>/items/...:/DSC_0001.JPG
returns:
HTTP/1.1 200 OK
However, during the copy operation another Graph request returns:
{
"error": {
"code": "unauthenticated",
"message": "Unauthenticated"
}
}
Unfortunately I could not identify which Graph endpoint produced that response.