Get username from user ID

As a developer it’s currently impossible or impractical to get a user’s username from their user ID.

I want to do this so I can correctly give credit to users who contribute to my game without ending up using an outdated username that they no longer use after N years. I just want to be able to use their user ID and have the engine convert that to their username.

I will not use a proxy for this. Using a proxy is never the solution.

This is already possible.

Method #1: Players:GetNameFromUserIdAsync() Players | Documentation - Roblox Creator Hub
Only gets a single user’s name.

Method 2: UserService:GetUserInfosByUserIdsAsync UserService | Documentation - Roblox Creator Hub
To get a batch of user display names + usernames

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.