There appears to be an issue with the Players:GetUserIdFromNameAsync()
function, which started occurring a few days ago. When trying to retrieve a user ID by passing a past username of a player, the function sometimes returns an “Unknown user” error. This is inconsistent as it does not happen for all past usernames.
For example, this user has two past usernames: ‘jessie_inlove1’ and ‘JJess1caD’. When ‘jessie_inlove1’ is passed to Players:GetUserIdFromNameAsync()
, it correctly returns the user ID. However, when ‘JJess1caD’ is used, it results in an “Unknown user” error, as shown in the screenshot attached. This issue is not isolated to this user alone; other affected usernames include ‘vvIiamm’, ‘Jxnaqssh’, and ‘The_Robloxian1257’.
The expected behavior is for the function to return the correct user ID regardless of whether the current or a past username is provided, provided that the username belonged to the user at some point. This is how it worked a few days ago before this issue began occurring. The current inconsistent behavior is affecting features that rely on historical data or user tracking across username changes.
Reproduction Steps:
- Open a Roblox Studio session.
- Execute the
Players:GetUserIdFromNameAsync()
function with a past username that has been changed. - Note that certain past usernames return the user ID correctly, while others return an “Unknown user” error.
Expected Behavior:
The function should consistently return the user ID for all past usernames of a player, as well as current ones.
Temporary Fix: