# Plugin to sync LDAP distribution lists with Discourse groups

**URL:** https://meta.discourse.org/t/plugin-to-sync-ldap-distribution-lists-with-discourse-groups/158932
**Category:** Development
**Created:** [July 27, 2020, 10:53am UTC](https://meta.discourse.org/t/plugin-to-sync-ldap-distribution-lists-with-discourse-groups/158932 "2020-07-27T10:53:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Cyrine](https://avatars.discourse-cdn.com/v4/letter/c/b19c9b/32.png) [@Cyrine](https://meta.discourse.org/u/Cyrine)
#### Post date: [July 27, 2020, 10:53am UTC](https://meta.discourse.org/t/plugin-to-sync-ldap-distribution-lists-with-discourse-groups/158932/1 "2020-07-27T10:53:14Z")

</div>

Hello,

I want to develop a plugin to sync LDAP Distribution lists with Discourse groups, but I am not sure how to go about writing the discourse side script for it. I’m wondering if it’s possible to directly use the GroupController and UserController classes or maybe if it’s a better idea to use the Ruby API instead. Or maybe there is another better way for this?
