# Gebruikersprofiel op ID in plaats van gebruikersnaam

**URL:** https://meta.discourse.org/t/user-profile-by-id-instead-of-username/185394
**Category:** Plugin
**Created:** [4 april 2021 om 09:55 UTC](https://meta.discourse.org/t/user-profile-by-id-instead-of-username/185394 "2021-04-04T09:55:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wilson29thid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wilson29thid/32/173700_2.png) [@wilson29thid](https://meta.discourse.org/u/wilson29thid)
#### Post date: [4 april 2021 om 09:55 UTC](https://meta.discourse.org/t/user-profile-by-id-instead-of-username/185394/1 "2021-04-04T09:55:33Z")

</div>

**Summary** : Supports linking to user pages by their user id instead of just username

I needed this because my website’s database stores a reference to discourse users by their ID, and I didn’t want to have to keep usernames in sync between the two databases (since usernames can change).

🔗 **GitHub** : [GitHub - 29th/discourse-user-by-id: Supports linking to user pages by their user id instead of just username · GitHub](https://github.com/29th/discourse-user-by-id)  
➡ **Install** : Follow the [plugin installation guide](https://meta.discourse.org/t/install-a-plugin/19157).

### Features

`/user-by-id/123/summary` redirects to `/u/janedoe/summary` etc.

I’m still new to developing plugins, so I’d love any feedback on how this could be improved (e.g. is a whole `Engine` really necessary? Would another route be more conventional? Is there some way to do this without a plugin?), including code quality. Thanks!
