# How to force synchronization to a particular one drive account?

**URL:** <https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809>\
**Category:** Support\
**Created:** [17 July 2021 03:01 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809 "2021-07-17T03:01:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhtmp88](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhtmp88](https://discourse.joplinapp.org/u/hhtmp88)\
**Post date:** [17 July 2021 03:01 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/1 "2021-07-17T03:01:45Z")

</div>

FactSheet:

- Joplin Desktop version: 2.1.8
- The operating system: Win10 v1909(build18363.1440)

My Android version was set to sync to One Drive account, say, [acct1@gmail.com](mailto:acct1@gmail.com),

However, the Win10 desktop version automatically sync Joplin notes to another One Drive Account, say, [acct2@gmail.com](mailto:acct2@gmail.com)

So my question is how to force Joplin Desktop to sync to One Drive Account, [acct1@gmail.com](mailto:acct1@gmail.com) ?

Thanks for any kind of help!  
hhtmp88

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/29723_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [17 July 2021 12:24 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/2 "2021-07-17T12:24:34Z")

</div>

@hhtmp88 welcome to the forum

Do you want to keep the existing notes from both accounts, either or none? i.e.:

- None
- Android only
- Windows only
- Both

Also be aware that changing sync targets when you already have notes can get a bit tricky and no process is without risks. Steps can be taken to minimise the risk, but risk remains.

Finally, I do not use OneDrive but I have read on this forum that some people have had issues with **Android** ⬅ ➡ **OneDrive** ⬅ ➡ **Windows** syncing. I do not know if that was a real problem , is still a problem, or was due to a specific system config of the users concerned.

---

<div class="post-metadata">

**Author:** ![hhtmp88](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhtmp88](https://discourse.joplinapp.org/u/hhtmp88)\
**Post date:** [17 July 2021 14:44 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/3 "2021-07-17T14:44:11Z")

</div>

Would like to  
Keep the notes data in Android Only.

How to do?

Thanks!

---

<div class="post-metadata">

**Author:** ![hhtmp88](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhtmp88](https://discourse.joplinapp.org/u/hhtmp88)\
**Post date:** [17 July 2021 14:50 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/4 "2021-07-17T14:50:20Z")

</div>

I am not sure,  
but why there are no way to enter the One Drive Account info in Joplin configuration ?

Instead, Joplin get login authorization automatically!

and get One Drive be logged into an account which is NOT the one we want it to be!

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/29723_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [17 July 2021 15:32 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/5 "2021-07-17T15:32:14Z")

</div>

If you don't want the notes on the Windows machine:

- Close the Windows desktop client _ **fully** _ ( **File** \> **Quit** )
- Rename your profile folder `<user>\.config\joplin-desktop` to, say, `<user>\.config\xjoplin-desktop`
- Start Joplin, it will be reset as if just installed and a new `<user>\.config\joplin-desktop` will be created
- Delete the welcome notes
- Link the desktop client to the OneDrive account you want to use ([acct1@gmail.com](mailto:acct1@gmail.com)) and sync
- Every note you had created on the Android device should now appear in the desktop client as they are linked to the same account
- Copy any templates or custom css files from `xjoplin-desktop` to `joplin-desktop`. **DO NOT COPY ANYTHING ELSE**
- If you have copied any css files across, close the desktop client fully ( **File** \> **Quit** ) and restart
- Once you are happy, delete `<user>\.config\xjoplin-desktop`

---

<div class="post-metadata">

**Author:** ![hhtmp88](https://avatars.discourse-cdn.com/v4/letter/h/3be4f8/32.png) [@hhtmp88](https://discourse.joplinapp.org/u/hhtmp88)\
**Post date:** [19 July 2021 04:26 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/6 "2021-07-19T04:26:53Z")

</div>

Does not Works!

still login automatically to [acct2@gmail.com](mailto:acct2@gmail.com)  
-\> any work-around's?  
.  
I wonder why there is NO place to enter the One Drive login credential directly in Joplin "Options" menu?

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/29723_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [19 July 2021 07:26 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/7 "2021-07-19T07:26:45Z")

</div>

> [@hhtmp88](#):
>
> I wonder why there is NO place to enter the One Drive login credential directly in Joplin "Options" menu?

This is because **Microsoft does not let you authorise Joplin to use OneDrive this way**. When you set OneDrive as a connector you are shown (on first sync) a URL to click which takes you to a Microsoft login screen at [login.live.com](http://login.live.com). You have to log into OneDrive / Microsoft with your username / password etc and get the Microsoft site to authorise Joplin for your account.

Joplin then gets a special token it then uses to sign in from then on.

> [@hhtmp88](#):
>
> still login automatically to [acct2@gmail.com](mailto:acct2@gmail.com)

The code from Microsoft is stored in your Joplin profile, so the fact that Joplin is apparently still logging onto the OneDrive account of `acct2@gmail.com` means either:

1. You have not renamed your profile as mentioned at step 2 above (did you see the Microsoft login screen again?)
2. You have previously used a hidden feature of Joplin to move your profile location

In Joplin Desktop go to **Tools** \> **Options** \> **General**. The very first line on the settings page starts, " **Notes and settings are stored in:**", what does it say after that?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [18 August 2021 07:27 UTC](https://discourse.joplinapp.org/t/how-to-force-synchronization-to-a-particular-one-drive-account/18809/8 "2021-08-18T07:27:07Z")

</div>

Closed on 18 August 2021 07:27 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
