ユーザID

From Resonite Wiki
Revision as of 08:25, 23 May 2025 by Kokoa0429 (talk | contribs) (Created page with "フォーマット")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ユーザID(またはuserid)は、ユーザーのアカウントに紐づく変更不可の識別子です。

フォーマット

すべてのユーザーIDは文字列「U-」で始まります。 ここで、「U」は「ユーザー」を意味し、他の文字(例:「G」や「R」)は、それぞれ「グループ」や「レコード」を示すことがあります。

現在、ユーザIDのフォーマットは二つあります。

一般ユーザID

ほとんどのResoniteユーザーIDは、U-<Snowflake ID>という形式の Snowflake IDです。

例えば、通常のユーザのIDはU-fX3pKe7AYYQのような形式です。

Username user ID

In the case of migrated accounts or system accounts such as the Resonite bot, the user ID string can appear in a different format.

In such cases, it will follow the format U-<username>.

For instance, a username user ID might look like U-Frooxius.

Never ever assume a user ID will match a username.

Use

It is generally recommended to not display this ID in user-facing scenarios (facets, worlds, ect) and instead display the username of the user by using the UserUsername ProtoFlux node.

As the user ID is immutable, it can be recommended to use it for cloud variables and components such as ValueUserOverride.

Finding a user ID

Finding user IDs can be simple and done in multiple ways:

  • Logging onto the Resonite account website will display your own user ID
  • Using the UserFromUsername ProtoFlux node in combination with a UserUserID node (this will only work in sessions where the user is present)
  • Using a user inspector (this will also only work for users present in the session)
  • Use the API to search and find users
  • Use a tool such as marsmaantje's user searcher (resrec:///U-marsmaantje/R-c671fca0-7b46-413f-a116-d57b8fbdbeba)