Additional Customer User Attribute¶
This tutorial explains how to add an additional attribute to the customer user using dynamic fields. Any kind of attribute can be added.
The following example shows how to add an attribute that holds VIP status for the customer user.
VIP Customer User¶
To use the VIP customer user functionality:
Go to the Dynamic Fields module of the administrator interface.
Add a drop-down dynamic field of type Customer User.
- Name:
CustomerUserVIPStatus
- Label: VIP Status
- Field type: Dropdown
- Object type: Customer User
- Possible values: 0 = No VIP ⚪️, 1 = VIP 🔴
- Default value: No VIP ⚪️
- Add empty value: No
- Translatable values: Yes
- Show link: leave it empty
- Name:
Go to the System Configuration screen of the administrator interface.
Add the dynamic field to the screens.
Agent::Organizer::ItemType###CustomerUserList Forms###AgentFrontend::CustomerUserCreate::Properties Forms###AgentFrontend::CustomerUserUpdate::Properties
Copy the used customer user back end mapping from the
Kernel/Config/Defaults.pm
and paste it into theKernel/Config.pm
.Uncomment the dynamic field section in the
Map
array and add the created dynamic field.# Dynamic field example [ 'DynamicField_CustomerUserVIPStatus', undef, 'CustomerUserVIPStatus', 1, 0, 'dynamic_field', undef, 0, undef, undef ],
Go to the Access Control Lists (ACL) module of the administrator interface.
Create an ACL that enables the SLAs only to VIP customer users. You can import the following ACL as well.
- ChangeBy: root@localhost ChangeTime: 2021-06-29 11:01:59 Comment: 'SLAs that are only available to VIP customer users.' ConfigChange: PossibleNot: Ticket: SLA: - 'SLA_Name' ConfigMatch: Properties: CustomerUser: DynamicField_CustomerUserVIPStatus: - '[Not]1' CreateBy: root@localhost CreateTime: 2021-06-29 10:59:38 Description: '' ID: 3 Name: VIP only SLA StopAfterMatch: 0 ValidID: 1
Do not forget to change the SLA name in the exported ACL.