Implement search by user

See #539 for reference.