# Directory Connector - Sync stops when closed?

**URL:** <https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121>\
**Category:** Help\
**Created:** [November 21, 2023, 6:51pm UTC](https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121 "2023-11-21T18:51:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![compumatter](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/compumatter/32/1238_2.png) [@compumatter](https://vaultwarden.discourse.group/u/compumatter)\
**Post date:** [November 21, 2023, 6:51pm UTC](https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121/1 "2023-11-21T18:51:10Z")

</div>

I am a new user of vaultwarden.

I have a mature Linux server that I have just installed vaultwarden on. All is well.

I have installed the Desktop Connector on my work Windows Desktop computer to sync my LDAP users and groups to my vaultwarden users and groups. I just entered my servers URL etc and things sync’d up perfectly.

That is working fine.

However… when I closed Desktop Connector and reopened it later I was very surprised to see it said sync status was “stopped”

The whole idea for me is to insure whenever someone adds, removes a new user in Active Directory, the sync would be picked up automatically every 5 minutes. In this way if we disabled a user in active directory that user would loose the ability to login within 5 minutes. If I add a new user, they would get access within 5 minutes.

If a manager has to manually start and sync that leaves a big margin of error. If they forget to sync after a staff member is released, they will still have access until a manual sync is done.

Am I missing something, is there a way to insure that constant ongoing sync’s are taking place?

What sayeth the group?

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [November 21, 2023, 7:39pm UTC](https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121/2 "2023-11-21T19:39:21Z")

</div>

I suggest to read the Bitwarden documentation regarding this.

> **[Schedule a Sync | Bitwarden Help Center](https://bitwarden.com/help/schedule-directory-sync/)**
>
> Learn how to use a cronjob to schedule Bitwarden Directory Connector syncs of users and groups.

---

<div class="post-metadata">

**Author:** ![ShadowPulse](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/shadowpulse/32/1237_2.png) [@ShadowPulse](https://vaultwarden.discourse.group/u/ShadowPulse)\
**Post date:** [November 23, 2023, 1:08pm UTC](https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121/3 "2023-11-23T13:08:17Z")

</div>

Have you checked the connector settings for an automatic sync option? It’s possible there’s a setting to enable periodic syncs.

---

<div class="post-metadata">

**Author:** ![ShadowPulse](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/shadowpulse/32/1237_2.png) [@ShadowPulse](https://vaultwarden.discourse.group/u/ShadowPulse)\
**Post date:** [December 5, 2023, 2:10pm UTC](https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121/4 "2023-12-05T14:10:57Z")

</div>

I looked for some info recently online and found one tutorial on YT that you might find helpful. At least, I hope so 🙂  
Here’s the link to the tutorial: [https://youtu.be/GmSRVsQMz9E?si=MSEd3Nw66BZjfXHS](https://youtu.be/GmSRVsQMz9E?si=MSEd3Nw66BZjfXHS)

---

<div class="post-metadata">

**Author:** ![compumatter](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/compumatter/32/1238_2.png) [@compumatter](https://vaultwarden.discourse.group/u/compumatter)\
**Post date:** [December 6, 2023, 3:12am UTC](https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121/5 "2023-12-06T03:12:34Z")

</div>

I did finally resolve it. Was a deep dive. You have to use CLI to get the benefit of regular syncs. You have to use GUI to prep the data.json file but once you start using CLI you can’t touch the GUI again. It’s odd but got it working

---

<div class="post-metadata">

**Author:** ![ShadowPulse](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/shadowpulse/32/1237_2.png) [@ShadowPulse](https://vaultwarden.discourse.group/u/ShadowPulse)\
**Post date:** [December 7, 2023, 1:09pm UTC](https://vaultwarden.discourse.group/t/directory-connector-sync-stops-when-closed/3121/6 "2023-12-07T13:09:24Z")

</div>

Oh! I didn’t know about that. Thanks for sharing! I’ll keep that in mind.
