i have added some extra Fields via AgentPrefs-myfield.xml and filled them by ldap Sync from our AD. Is it possible to make these fields read-only? So that the agents cannot change them?
Here is my code:
Code: Select all
<ConfigItem Name="PreferencesGroups###OrganisationUnit" Required="1" Valid="1">
<Description Translatable="1">Zusätzliche Felder für Benutzereinstellungen, welche die eigene Position näher Beschreiben und in den Signaturen ausgewertet werden. Hier: Abteilung</Description>
<Group>Framework</Group>
<SubGroup>Frontend::Agent::Preferences</SubGroup>
<Setting>
<Hash>
<Item Key="Module">Kernel::Output::HTML::PreferencesGeneric</Item>
<Item Key="Column">User Profile</Item>
<Item Key="Label" Translatable="1">Organisationseinheit (AD Befüllt)</Item>
<Item Key="Key" Translatable="1">Name der Organisationseinheit</Item>
<Item Key="Block">Input</Item>
<Item Key="Data">$Env{"UserMyFieldOrganisationUnit"}</Item>
<Item Key="PrefKey">UserMyFieldOrganisationUnit</Item>
<Item Key="Prio">6101</Item>
<Item Key="Active">1</Item>
</Hash>
</Setting>
</ConfigItem>