OneDrive wizard fails to fetch /me/drives for some accounts

What is the problem you are having with rclone?

For some reason, on the consumer OneDrive account I am using, https://graph.microsoft.com/v1.0/me/drives always returns

{
    "error": {
        "code": "accessDenied",
        "message": "Database Is Read Only",
        "innerError": {
            "code": "serviceReadOnly",
            "date": "2026-08-22T17:34:11",
            "request-id": "39ef8442-b664-48ad-af65-8ef9a7816c56",
            "client-request-id": "dcaf5d52-4202-0157-aa09-8f0e3ac347f3"
        }
    }
}

while https://graph.microsoft.com/v1.0/me/drive works. I tested this in Graph Explorer.

This is only a problem in the config wizard. Once I had the Drive ID from the /me/drive endpoint and I had configured it manually, everything worked.

The wizard already queries /me/drive to work around missing drives from the enumeration endpoint. It should probably just tolerate an error from /me/drives if /me/drive works.

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

rclone v1.74.4-DEV
- os/version: alpine 3.24.0 (64 bit)
- os/kernel: 6.18.39-0-lts (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.26.5
- go/linking: dynamic
- go/tags: none

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

OneDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config

The rclone config contents with secrets removed.

After doing the manual config, it's

[redacted]
type = onedrive
token = redacted
client_id = redacted
client_secret = redacted
drive_id = redacted
drive_type = personal

A log from the command with the -vv flag

Apologies, I only kept the error, but it's very clear from where in the codebase it comes from.

Failed to query available drives: HTTP error 403 (403 Forbidden) returned body: "{\"error\":{\"code\":\"accessDenied\",\"message\":\"Database Is Read Only\",\"innerError\":{\"code\":\"serviceReadOnly\",\"date\":\"2026-08-22T16:58:24\",\"request-id\":\"a8a046de-0659-49bb-9cd9-c5194aba792b\",\"client-request-id\":\"a8a046de-0659-49bb-9cd9-c5194aba792b\"}}}"

welcome to the forum,

have you seen OneDrive config 403 Forbidden

I had searched but didn't catch it, thank you.

onedrive: fix 403 Forbidden for configuration personal onedrive by machsix · Pull Request #9800 · rclone/rclone · GitHub is the same fix I'm suggesting.

Looks like Microsoft has changed something since this code worked since 2020 or so!

That PR is nearly ready to merge and I'll get it into v1.75.1 :slight_smile:

I've merged the fix for this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.75.1

Confirmed fixed here, thanks for the quick response!

rclone v1.75.0 - Unable to obtain a drive ID.

rclone v1.76.0-beta.10204.660144d31 - Able to obtain a drive ID, and lsd successfully.

rclone v1.75.0 - Able to access OneDrive via the config file written by v1.76.0.