You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Idea for a new 'truncate' transformer in UsernameTemplateMapper.java
#17284
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
What if the Username Template Mapper had the ability to truncate usernames to a fixed length? Why would this be needed?
Some systems have username length restrictions. For example, ServiceNow limits to 40 characters.
UsernameTemplateMapper.java has transformers for
uppercase,lowercase, andlocalpart. Could truncate be added?It might work something like this:
${NAMEID|truncate(40)}i.e. truncate the the NAMEID to 40 characters. The existing logic to ensure username uniqueness should work.
All reactions