Players:GetDisplayNameFromUserIdAsync

As a Roblox developer, it is currently too hard to get the display name for users not in the current server. The use case that brought this lack in APIs to my attention was working to create global leaderboards for my current project.

If Roblox is able to address this issue, it would improve my development experience because I wouldn’t have to resort to showing usernames or building my own data store to persist this information.

34 Likes

Hi @ProbableAI, thanks for your interest in the DisplayName feature.

You may be interested in the UserService. UserService is a newer service used to get information about users who are not currently in the game. You can use UserService:GetUserInfosByUserIdsAsync to get a list of users from your global leaderboard and retrieve their username and display name.

Hope this helps!

24 Likes

That is perfect! Definitely didn’t know that existed. Thank you!

1 Like