Currently we sync:-
UserFirstname
UserLastname
UserEmail
UserMobile
...without any issues.
I created a custom field in Agent Preferences using the below .xml (located in /opt/otrs/Kernel/Config/Files/AgentPrefs-myfield.xml):-
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
<ConfigItem Name="PreferencesGroups###Telephone" Required="0" Valid="1">
<Description Translatable="1">Agent Telephone Number.</Description>
<Group>Framework</Group>
<SubGroup>Frontend::Agent::Preferences</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::Preferences::Generic</Item>
<Item Key="Column">Other Settings</Item>
<Item Key="Label" Translatable="1">Telephone</Item>
<Item Key="Key" Translatable="1">Telephone</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserMyFieldTelephone"}</Item>
<Item Key="PrefKey">UserMyFieldTelephone</Item>
<Item Key="Prio">6100</Item>
<Item Key="Active">0</Item>
</Hash>
</Setting>
</ConfigItem>
</otrs_config>
I have checked in the DB, and the preferences_key has been added:-
Code: Select all
mysql> select * from user_preferences where preferences_key="UserMyFieldTelephone";
+---------+----------------------+-------------------+
| user_id | preferences_key | preferences_value |
+---------+----------------------+-------------------+
| 17 | UserMyFieldTelephone | |
+---------+----------------------+-------------------+
1 row in set (0.00 sec)
Code: Select all
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
UserMobile => 'mobile',
UserMyFieldTelephone => 'ipPhone'
I am really struggling to get the UserMyFieldTelephone field to be populated.
Any suggestions as to where I am going wrong are very much appreciated.