איך אני יכול למצוא את שם המשתמש התואם לפי מזהה משתמש?

我是一个 Discourse 社区的用户,我想知道是否有任何方法来通过 user ID 获取用户名。或者从用户 nickname 获取用户名。

You may want to look at this topic. AFAIK you can’t access a user route with the user id like /u/id. Also the API docs are on getting user info from the user id are only by the admin route, it seems:

לייק 1

Why do you need that information?

A quite hacky way is to search for user:USERID. For example, user:95552 and then you can find out more about me by looking at my profile.

An admin could also create a data explorer query that returns the data you need based on the userID. They can give access to it to a group, and you being a member of the group, could use it.

לייק 1