OneDrive Sync Question

I don't want to delete the whole configuration (this was the solution in Syncronization - OneDrive) but only to alter and/or review my OneDrive-Sync-Settings. How can I accomplish this?

Additionaly, if I start Joplin at work, it seems that Joplin automagically uses my microsoft business account - instead, I wanted to specify my private account to access my private OneDrive from there. Again: How to configure the Sync settings?

I don't want to delete the whole configuration (this was the solution in Syncronization - OneDrive) but only to alter and/or review my OneDrive-Sync-Settings. How can I accomplish this?

You won't be able to see your email adress you have used to login for the reason I explained here:

I think there is no option for changing your onedrive Account or to log out at the moment in the GUI. As workaround you probablly could log out of onedrive by deleting the value of sync.3.context in the settings table in the database but be aware that users actually are encouraged to not manipulate the database on their own as this can lead to serious problems such as data loss. Also I haven't tested it and don't take any responsibilty. So you should be careful if you do this.

Additionaly, if I start Joplin at work, it seems that Joplin automagically uses my microsoft business account - instead, I wanted to specify my private account to access my private OneDrive from there

The reason that joplin automatically uses your Business account is that you most likely have ticked the "always login" checkbox in your default Browser for your Business Account. So you should open onedrive in the Browser and log out of your Business Account. When you then click on synchronize the first time after chosen onedrive as sync target you will see the login Dialog in your Browser and you can log in with your private Account. Once logged in with your Private Account in joplin you can again tick the "always login" checkbox for your Business Account if you want.

If I go to onedrive.com in my default browser, it opens my personal (NOT business) OneDrive account.

When I selected "OneDrive" as the sync target for Joplin, it automatically connected to my business account.

I have read through various forum posts, but it's not clear to me how to tell Joplin that it needs to request a new OneDrive token. There should be a UI option to tell Joplin to invalidate the token it currently holds.

In fact, if I revoke Joplin's permissions through OneDrive itself, then select OneDrive as the synchronization target, I simply get an error message with no apparent way to re-link a OneDrive account.

Screen Shot 2020-11-05 at 8.51.37 AM

1 Like

Any suggestions on how to re-link OneDrive?

Create JEX export file, delete .config/joplin-desktop folder, delete OneDrive Apps/Joplin folder, import JEX file, set up synchronization again.

Thanks for the suggestion.

I don't think this is practical for production software, though. Hopefully a simple option can be added in the Synchronization preferences that allow re-authenticating to OneDrive.

Is the same process required when the OneDrive token expires after 1 year? From an application perspective, expiration of a token is the same as a revocation.

3 Likes

Facing the same issue here. Tried to disconnect from OneDrive , uninstall and reinstall, deleteing the folders, but no success.Where can I find the .config/joplin-desktop or is this the one under C:\Users\xxx\AppData\Roaming@joplin? I am on Win-10.

Under windows: %userprofile%\.config\joplin-desktop
or for alle OS check in Joplin Tools > Options > General there you can see the whole path.

That did the trick. Would be great of this could be changed in the interface in the future. So far very happy with Joplin.