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.