# User profile page by id?

**URL:** <https://meta.discourse.org/t/user-profile-page-by-id/118663>\
**Category:** SSO\
**Created:** [May 25, 2019, 2:04pm UTC](https://meta.discourse.org/t/user-profile-page-by-id/118663 "2019-05-25T14:04:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![John\_Lehmann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/john_lehmann/32/140084_2.png) [@John\_Lehmann](https://meta.discourse.org/u/John_Lehmann)\
**Post date:** [May 25, 2019, 2:04pm UTC](https://meta.discourse.org/t/user-profile-page-by-id/118663/1 "2019-05-25T14:04:02Z")

</div>

Is there a route to access a public user profile using their id?

I’m aware of: `https://meta.discourse.org/u/{username}/summary`  
And I want: `https://meta.discourse.org/u/{user-id}/summary`

Purpose: I want profiles on my main site to link to profiles on my discourse site. The problem is initially I wasn’t using SSO so the usernames are not all consistent between my two sites, and are being update as the user logout/login. I attempted to “flush” out the old user ids only to realize there is no endpoint for me to update usernames (you can only update email and avatar).

Because usernames are changing, I stored `id` instead, but now I realize I cannot directly generate a URL to get to their profile with id. I would have to do additional web requests which I am trying to avoid. Otherwise, I think I have to hit the `by-external` endpoint once to get the username, but a redirect would be nice.

---

_[View the full topic](https://meta.discourse.org/t/user-profile-page-by-id/118663)._
