GetUUID
Return the Susano account ID of the currently logged-in user.
Syntax
Susano.GetUUID() -> integer
Parameters
None
Return(s)
integer: The user's Susano account ID. The same value the account has on the website and in the customer dashboard.
Behavior
Returns the unique account identifier assigned to the currently authenticated Susano user. Because it is tied to the account (not the session or the machine), the same user gets the same ID across relaunches, reinstalls, and different PCs.
Useful for scoping per-user data on your own backend, correlating cloud submissions with a specific customer, or tagging telemetry so you can support users faster.
Example(s)
local userId = Susano.GetUUID()
print("Logged in as user #" .. userId)
-- Include the user id in an API call so your server can identify them
Susano.HttpPost(
"https://example.com/telemetry",
string.format('{"user_id":%d,"event":"launch"}', userId)
)