# LDAP\_USER\_CREATION is true but create user as Manager

**URL:** <https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608>\
**Category:** Open Discussions\
**Created:** [January 14, 2021, 3:51pm UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608 "2021-01-14T15:51:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruffy1984](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Ruffy1984](https://kanboard.discourse.group/u/Ruffy1984)\
**Post date:** [January 14, 2021, 3:51pm UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608/1 "2021-01-14T15:51:17Z")

</div>

Hello Community,

i have a short question, is it possible that kanboard creats my automatic LDAP User as Manager ?

Currently, all new automatically created users are created as role “user” - it is possible that they are created as role “manager” .

// Allow automatic LDAP user creation  
define(‘LDAP\_USER\_CREATION’, true);

Thank you for your answers

---

<div class="post-metadata">

**Author:** ![Ruffy1984](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Ruffy1984](https://kanboard.discourse.group/u/Ruffy1984)\
**Post date:** [February 2, 2021, 12:16pm UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608/2 "2021-02-02T12:16:42Z")

</div>

is there really nobody here who can help me?

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [February 2, 2021, 4:38pm UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608/3 "2021-02-02T16:38:00Z")

</div>

`define(‘LDAP_USER_DEFAULT_ROLE_MANAGER’, true);`

---

<div class="post-metadata">

**Author:** ![Ruffy1984](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Ruffy1984](https://kanboard.discourse.group/u/Ruffy1984)\
**Post date:** [February 3, 2021, 3:24pm UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608/4 "2021-02-03T15:24:20Z")

</div>

Hello Creecros,

thank you very much.

i configured:  
// Allow automatic LDAP user creation  
define(‘LDAP\_USER\_CREATION’, true);

//Auto Manager  
define(‘LDAP\_USER\_DEFAULT\_ROLE\_MANAGER’, true);

Unfortunately, my automatic LDAP user creation users are still created as “users”, not as “manager” do you have any ideas?

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [February 3, 2021, 5:45pm UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608/5 "2021-02-03T17:45:51Z")

</div>

Users that where already added, before changing the setting?

If so, could you try adding a new user, and see what their role becomes?

also, ensure that you have restarted your server before adding a new user to test it.

---

<div class="post-metadata">

**Author:** ![Ruffy1984](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@Ruffy1984](https://kanboard.discourse.group/u/Ruffy1984)\
**Post date:** [February 4, 2021, 8:16am UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608/6 "2021-02-04T08:16:00Z")

</div>

hey creecros,  
really thank you very much for your help.  
I only tested that if a new User successfully is logs on on kanboard ( LDAP credentials) , the system is automatically creating the user,  
but does not assume the role as manager, the user gets the role “user”

i restarted my server after changing the setting.

---

<div class="post-metadata">

**Author:** ![creecros](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/creecros/32/156_2.png) [@creecros](https://kanboard.discourse.group/u/creecros)\
**Post date:** [February 5, 2021, 12:14am UTC](https://kanboard.discourse.group/t/ldap-user-creation-is-true-but-create-user-as-manager/1608/7 "2021-02-05T00:14:23Z")

</div>

might be a bug? I haven’t used ldap in ages, so I’ve never actually tested. Hopefully someone else can confirm whether it works or not.
