# 如何通过用户ID链接到用户个人资料？

**URL:** <https://meta.discourse.org/t/how-can-i-link-to-a-user-profile-by-their-user-id/183196>\
**Category:** Development\
**Created:** [2021年三月14日 10:51 UTC](https://meta.discourse.org/t/how-can-i-link-to-a-user-profile-by-their-user-id/183196 "2021-03-14T10:51:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [2021年三月16日 06:53 UTC](https://meta.discourse.org/t/how-can-i-link-to-a-user-profile-by-their-user-id/183196/3 "2021-03-16T06:53:36Z")

</div>

感谢 @pfaffman，这非常有帮助。我认为使用外部 ID 是最佳方案，因为它还能解决另一个问题——[反向链接](https://meta.discourse.org/t/link-custom-user-field-to-external-website/41218/53?u=wilson29thid)。

不过，我在查阅 API 文档和使用 REST 客户端时，没找到如何更新该字段的方法。我能否在不启用 SSO 的情况下使用它？（而且，即使启用了 SSO，我能否通过程序方式更新它？）

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-link-to-a-user-profile-by-their-user-id/183196)._
