I added my personal OneDrive account using Settings > Online Accounts > Microsoft 365. When it asked for the Client ID and Tenant ID I just left them blank. I linked my account and allowed Gnome access when it asked.
The problem I am having is that I can click on my Microsoft Account in Files, and I can even browse through the folders and see all the files. However, when I try to open a file I get an error. Most apps report it as an “HTTP Error: Unauthorized”. LibreOffice gives the most information and says both the error code and message are “unauthenticated”.
When I open my terminal and do ls -l I can see that the files are rw for the user and that the user and group are correctly my username.
I also noticed that if I right click on a file in Files and select Properties, under Permissions it says None. If I click on Permissions to get more information, it says `Unknown Permissions. The permissions of “myfile.txt” could not be determined.
Is anyone able to successfully use a personal OneDrive account and open or edit their files?
Do I maybe have an older version of Gnome? When I click on Microsoft 365 in the Online Accounts section I don’t see the first switch. All I see is this:
Hi everyone. I appreciate the responses, but I don’t think my issues is a question of how to add the account.
I believe I’ve correctly added the account, but there is still some issue with accessing the files. I’m able to successfully add the account and browse and see all my files and folders, but I’m just not able to open them.
Maybe LibreOffice doesn’t use GIO to access the files but instead tries to open the URL itself. In that case that would almost certainly fail for URL schemas that are not supported by LibreOffice itself or require authentication.
You can try copying the libreoffice .desktop files from /usr/share/applications/ to ~/.local/share/applications/ and then edit them to change the Exec key to use %F instead of %U to force going through GIO/GVFS via the fuse daemon by stopping it from claiming that it supports URLs.