You will first need to lookup the user’s Discourse user_id, then make an update request using that. This should help with the first bit:
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| How can I update users via API using the user id (not username)? | 3 | 1328 | 2020 年12 月 18 日 | |
| Find user by external ID (SSO) | 10 | 4126 | 2020 年11 月 10 日 | |
| Is it possible to get a user by its Discourse ID from the Discourse API? | 6 | 1791 | 2018 年8 月 5 日 | |
| How can I link to a user profile by their user ID? | 5 | 1943 | 2021 年4 月 3 日 | |
| Using external_id via API | 2 | 1231 | 2023 年1 月 24 日 |