I am a user of the Discourse community, and I would like to know if there is any way to get a username by user ID. Or get a username from a user 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:
2 Likes
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.
3 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.