# CustomFields from ldap

**URL:** <https://forums.rocket.chat/t/customfields-from-ldap/2163>\
**Category:** Community Support\
**Created:** [October 3, 2018, 9:50am UTC](https://forums.rocket.chat/t/customfields-from-ldap/2163 "2018-10-03T09:50:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![basilcool](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@basilcool](https://forums.rocket.chat/u/basilcool)\
**Post date:** [October 3, 2018, 9:50am UTC](https://forums.rocket.chat/t/customfields-from-ldap/2163/1 "2018-10-03T09:50:04Z")

</div>

Hi  
Sorry for my English

I have a setting for importing data from ldap to costumFields  
But its not working (  
Please correct me where I was wrong

admin/LDAP:  
{“displayName”:“name”, “mail”:“email”, “telephoneNumber”:“customFields.Phones”}

admin/Accounts:  
Accounts customFieldsToShowInUserInfo:

[{“Phones”:“PNumber”},{“Department”:“TDepartment”}]

Accounts\_CustomFields:  
{  
“PNumber”: {  
“type”: “text”,  
“required”: true,  
“minLength”: 1,  
“maxLength”: 10  
}  
},  
“TDepartment”: {  
“type”: “text”,  
“required”: true,  
“minLength”: 2,  
“maxLength”: 50  
}  
}
