You could add an extra attribute to the entity you are using that holds the shorter username. You can populate this by using a microflow that takes a substring from the full username and stores just that first part. You could run this microflow in a before commit event on the entity so whenever the long name is created or changed, it is set automatically.
Hope this helps.