Problem with OneDrive for Business with App ID & Secret

I had registered an app id to have a client app id and secret. I add them to the config and it authenticates ok, but when I do a directory listing (lsd) I get the following error:

Failed to create file system for “odb:/”: failed to get root: unauthenticated: Must be authenticated to use ‘/drive’ syntax

I have added the necessary delegated permissions to the app, but I’m stuck where I can’t get it to list the files.

If I use rclones default, the listing works ok. I even tried on the latest beta, but get the same error. Please help!

edit: oh, and I did grant the app the following permissions:
Files.Read
Files.Read.All
Files.Read.Selected
Files.ReadWrite
Files.ReadWrite.All
offline_access
profile

but still won’t work…

I’ve just merged the microsoft graph code thanks to @Cnly - it would be worth trying with the latest beta and giving feedback since the auth code all changed!

2 Likes

WOW.
Yes, that did work! I had just downloaded the older beta yesterday, thanks for the new code!
Did notice the new configuration options, I guess that is why it was having trouble, don’t know…

Again, thanks!!

1 Like