Bug 47830

Summary: Add parameters to user template options
Product: UCS Reporter: Ole Schwiegert <schwiegert>
Component: UDM (Generic)Assignee: UMC maintainers <umc-maintainers>
Status: NEW --- QA Contact: UMC maintainers <umc-maintainers>
Severity: normal    
Priority: P5 CC: best, schwiegert
Version: UCS 5.0   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
What kind of report is it?: Feature Request What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Ole Schwiegert univentionstaff 2018-09-18 10:57:52 CEST
With Bug #47580 a new option to remove non-alphanumeric characters was introduced into the user templates. In the current implementation you can define characters in an UCR variable that are to be excluded from removal. It would be pretty handy to allow a parametrization of this option to define exclude characters also on a per use level.

This could be helpful if special characters are to be removed say in the email address but should be allowed in the display name. It could look like that for example:

<firstname>.<lastname:alphanum['`^],trim,umlauts>@domain.de

Of course other delimiters than the square brackets could be used as well. The challenge would be to devise a correct regular expression that can handle this type of notation (e.g a , or : in the list of excluded characters)

There may be application for other (future) options as well to receive parameters.