Drupal core already supports autocompletion of username fields. However is there a way to provide autocomplete for user's Display Name? Since this is a virtual field, a database query with % like cannot be performed.
One way I could think of accomplish this would be to save display name for each user in the user_data table, and set this storage with an event subscriber that reacts on account creation and account update. Once this field is available, it could then be used with database queries for autocomplete.
Interested to know if there is another way to do this.