Custom Fields in Agent Prefs with Read Only Fields

Moderator: crythias

Post Reply
Julian0o
Znuny newbie
Posts: 55
Joined: 14 May 2014, 13:28
Znuny Version: 5.0.7

Custom Fields in Agent Prefs with Read Only Fields

Post by Julian0o »

Hi there,

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>
OTRS 5.x & KIX4OTRS
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Custom Fields in Agent Prefs with Read Only Fields

Post by crythias »

ldap is read only.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Post Reply