ID d'utilisateur

From Resonite Wiki
Revision as of 10:45, 22 January 2024 by J4 (talk | contribs) (Created page with "ID d'utilisateur")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

L'ID d'un utilisateur (aussi appelé userid) est un ID immuable lié a leur compte Resonite.

Format

Tous les ID d'utilisateurs commencent par U- (la lettre "U" signifiant "utilisateur"; d'autres exemples sont "G" et "R" qui veulent dire "groupe" et "record" respectivement).

Il y a deux formats possible pour les ID d'utilisateur.

ID d'utilisateur normal

La plupart des ID d'utilisateur sur Resonite sont un ID "Snowflake", suivant le format U-<snowflake>.

Par exemple, l'ID d'un utilisateur peut ressembler a U-fX3pKe7AYYQ.

ID nom d'utilisateur

Dans le cas d'un compte migré ou d'un compte système comme le Resonite bot, l'ID d'utilisateur peut apparaître dans un format différent.

Dans ce cas, il va suivre le format U-<nom d'utilisateur>.

Par exemple, un ID d'utilisateur peut ressembler a U-Frooxius.

Ne jamais assumer qu'un ID va correspondre a un nom d'utilisateur.

Utilisation

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)