How can I link to a user profile by their user ID?

You can try this:

https://SERVER/community/admin/users/list/active.json?filter=email%40hostname.com&show_emails=true

You’ll need to pass the API key in headers as documented elsehwere.