This guide will help you to sync custom attributes from your AD server (at the bottom you will find a hands-on video teaching on how to fully integrate LDAP with Rocket.chat):
1) Go to Administration > Accounts > Registration and set the Custom Fields:
2) Go to Administration > Accounts > Custom Fields to Show in User Info and set the field that you want to be shown:
3) Under Administration > Accounts > LDAP > Enterprise > Sync Custom Fields enable and set the fields to be synced:
4) Now, on the Active Directory Side, set the Custom Attribute:
5) Under Administration > Accounts > LDAP hit the Sync Now button and proceed to Administration > Users and select the user, you should be able the custom field:
If you are on Silver or Golden plan and want to set up a custom domain, you will need to set up a CNAME DNS record for "domain_you_want" pointing to "cdns.use1.cloud.rocket.chat" (for US region) and to "cdns.euc1.cloud.rocket.chat" (for EU region) - ...