Associate Every Displayed User Name With Corresponding users.data Table Row
It sounds like you should start with what you don't want.

Drupal::currentUser()-&gt;id() will retrieve the current user's UID. From there, you can use the UserStorage::loadByProperties() method you referenced to pull the UID by user name. The last step is add code to check Drupal::currentUser()-&gt;id() doesn't match the UID found from UserStorage::loadByProperties()