How to look up a user based on a user_id?

For me the quickest way is simply to make a request like this whilst logged in as admin:
http://discourse.example.com/admin/users/398.json

This will get the user by ID 398.

Yes, the result is JSON but it’s pretty easy to read the first few lines.