# LDAP multiple users groups

**URL:** <https://forum.xwiki.org/t/ldap-multiple-users-groups/10460>\
**Category:** Help / Discuss\
**Tags:** ldap, xwiki\
**Created:** [June 7, 2022, 5:02pm UTC](https://forum.xwiki.org/t/ldap-multiple-users-groups/10460 "2022-06-07T17:02:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NicolasBouton](https://forum.xwiki.org/user_avatar/forum.xwiki.org/nicolasbouton/32/4292_2.png) [@NicolasBouton](https://forum.xwiki.org/u/NicolasBouton)\
**Post date:** [June 7, 2022, 5:02pm UTC](https://forum.xwiki.org/t/ldap-multiple-users-groups/10460/1 "2022-06-07T17:02:51Z")

</div>

Dear all,  
I’m quite new with xwiki and I have a quick question regarding ldap users.  
I could successfully configure ldap over TLS but I would like to allow more than group of users to connect my xwiki instance.  
Can the entry below allow multiple entries ?  
xwiki.authentication.ldap.user\_group=  
Instead of distribution groups can I configure OUs ? it does not seem to work for me.  
Thank you !

---

<div class="post-metadata">

**Author:** ![tmortagne](https://forum.xwiki.org/user_avatar/forum.xwiki.org/tmortagne/32/4930_2.png) [@tmortagne](https://forum.xwiki.org/u/tmortagne)\
**Post date:** [June 8, 2022, 7:13am UTC](https://forum.xwiki.org/t/ldap-multiple-users-groups/10460/2 "2022-06-08T07:13:58Z")

</div>

` xwiki.authentication.ldap.user_group` only supports one group, but it supports various kinds of groups of groups documented above the `xwiki.authentication.ldap.group_mapping` property in [https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/](https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/).

> [@NicolasBouton](#):
>
> Instead of distribution groups can I configure OUs ? it does not seem to work for me.

Well it should in theory. You should probably try to enable debug log to see how what you indicate is resolved exactly.

---

<div class="post-metadata">

**Author:** ![netand](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/n/439d5e/32.png) [@netand](https://forum.xwiki.org/u/netand)\
**Post date:** [June 8, 2022, 10:16am UTC](https://forum.xwiki.org/t/ldap-multiple-users-groups/10460/3 "2022-06-08T10:16:12Z")

</div>

> [@NicolasBouton](#):
>
> xwiki.authentication.ldap.user\_group

Yes, 👍  
You can use this :  
xwiki.authentication.ldap.group\_mapping=XWiki.Group1=cn=HMS Lydia,ou=crews,ou=groups,o=sevenSeas|\ (there is a back slash)  
XWiki.Group2=HMS Victory,ou=crews,ou=groups,o=sevenSeas

And create a third group with : “XWiki.Group1” and “XWiki.Group2”

---

<div class="post-metadata">

**Author:** ![NicolasBouton](https://forum.xwiki.org/user_avatar/forum.xwiki.org/nicolasbouton/32/4292_2.png) [@NicolasBouton](https://forum.xwiki.org/u/NicolasBouton)\
**Post date:** [June 17, 2022, 7:48am UTC](https://forum.xwiki.org/t/ldap-multiple-users-groups/10460/4 "2022-06-17T07:48:28Z")

</div>

Thank you guys for your help on this issue !

---

<div class="post-metadata">

**Author:** ![xvostikk](https://forum.xwiki.org/user_avatar/forum.xwiki.org/xvostikk/32/2239_2.png) [@xvostikk](https://forum.xwiki.org/u/xvostikk)\
**Post date:** [March 28, 2024, 2:31pm UTC](https://forum.xwiki.org/t/ldap-multiple-users-groups/10460/5 "2024-03-28T14:31:44Z")

</div>

I need really solution here: the wiki members in our organisation are from the different groups. I can use only one group with `xwiki.authentication.ldap.user_group` and it mapps the groups with `xwiki.authentication.ldap.group_mapping` but everybody else still can log in! I did exactly the settings from here [https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/](https://extensions.xwiki.org/xwiki/bin/view/Extension/LDAP/Authenticator/) . As the result: every from ldap.base can log in, the groups are correct gemapped.

Can somebody help?

Thanks
