This is technically an `n^2` operation.  Probably not a big deal.  But if the resolvedNames could be turned into an Object of `userid => user`, the lookup will hopefully become linear time (assuming that objects are implemented as hashes).