User ID/ja: Difference between revisions

From Resonite Wiki
Created page with "フォーマット"
 
Created page with "API を使ってユーザーを検索する"
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
例えば、通常のユーザのIDは<code>U-fX3pKe7AYYQ</code>のような形式です。
例えば、通常のユーザのIDは<code>U-fX3pKe7AYYQ</code>のような形式です。


=== <span lang="en" dir="ltr" class="mw-content-ltr">Username user ID</span> ===
=== ユーザ名ユーザID ===




<span lang="en" dir="ltr" class="mw-content-ltr">In the case of [[Migrations | migrated accounts]] or system accounts such as the [[Resonite Bot | Resonite bot]], the user ID string can appear in a different format.</span>
[[Migrations | マイグレーション済みアカウント ]][[Resonite Bot | Resoniteボット]]などのシステムアカウントの場合、ユーザーIDの文字列が異なる形式で表示されることがあります


<span lang="en" dir="ltr" class="mw-content-ltr">In such cases, it will follow the format <code>U-<username></code>.</span>
この場合は、<code>U-<ユーザ名></code>の形式になります。


<span lang="en" dir="ltr" class="mw-content-ltr">For instance, a username user ID might look like <code>U-Frooxius</code>.</span>
例えば、ユーザIDは<code>U-Frooxius</code>のようになります


<span lang="en" dir="ltr" class="mw-content-ltr">'''Never ever assume a user ID will match a username.'''</span>
'''ユーザーIDがユーザー名と一致すると考えてはいけません'''


== <span lang="en" dir="ltr" class="mw-content-ltr">Use</span> ==
== 使用方法 ==


<span lang="en" dir="ltr" class="mw-content-ltr">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 [[User Username (ProtoFlux) | UserUsername]] [[ProtoFlux]] node.</span>
ユーザIDは、一般的にユーザに見える場面(絞り込み項目やワールド一覧など)では表示しないことが推奨されています。代わりに、[[User Username (ProtoFlux) | ユーザー名]] [[ProtoFlux]] ノードを使って、ユーザーのユーザー名を表示するようにしてください。


<span lang="en" dir="ltr" class="mw-content-ltr">As the user ID is immutable, it can be recommended to use it for [[Cloud Variables | cloud variables]] and components such as [[ValueUserOverride (Component) | ValueUserOverride]].</span>
ユーザIDは変更できないため、[[クラウド変数 | cloud variables]][[ValueUserOverride(コンポーネント) | ValueUserOverride]]などのコンポーネントで使用することが推奨されます。


=== <span lang="en" dir="ltr" class="mw-content-ltr">Finding a user ID</span> ===
=== ユーザIDの見つけ方 ===


<span lang="en" dir="ltr" class="mw-content-ltr">Finding user IDs can be simple and done in multiple ways:</span>
ユーザーIDの取得はシンプルで、複数の方法で取得することができます。


* <span lang="en" dir="ltr" class="mw-content-ltr">Logging onto the [https://account.resonite.com Resonite account website] will display your own user ID</span>
* [https://account.resonite.com | Resoniteアカウントウェブサイト]にログインすると、自分のユーザーIDが表示されます
* <span lang="en" dir="ltr" class="mw-content-ltr">Using the [[User From Username (ProtoFlux) | UserFromUsername]] ProtoFlux node in combination with a [[User User ID (ProtoFlux) | UserUserID]] node (this will only work in sessions where the user is present)</span>
* [[User From Username (ProtoFlux)|UserFromUsername]]ノードと[[User User ID (ProtoFlux)|UserUserID]]ノードを組み合わせて使用する(この方法は、ユーザーがセッション内にいる場合にのみ有効)
* <span lang="en" dir="ltr" class="mw-content-ltr">Using a [[User Inspector | user inspector]] (this will also only work for users present in the session)</span>
* [[User Inspector | ユーザーインスペクター]]を使用する(これもセッション内にいるユーザーにのみ適用されます)
* <span lang="en" dir="ltr" class="mw-content-ltr">Use the [[API]] to search and find users</span>
* [[API]] を使ってユーザーを検索する
* <span lang="en" dir="ltr" class="mw-content-ltr">Use a tool such as marsmaantje's user searcher (<code>resrec:///U-marsmaantje/R-c671fca0-7b46-413f-a116-d57b8fbdbeba</code>)</span>
* ツールを利用する場合は、marsmaantjeのユーザー検索ツール(<code>resrec:///U-marsmaantje/R-c671fca0-7b46-413f-a116-d57b8fbdbeba</code>)などを使用してください

Latest revision as of 08:40, 23 May 2025

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

フォーマット

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

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

一般ユーザID

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

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

ユーザ名ユーザID

マイグレーション済みアカウント Resoniteボットなどのシステムアカウントの場合、ユーザーIDの文字列が異なる形式で表示されることがあります

この場合は、U-<ユーザ名>の形式になります。

例えば、ユーザIDはU-Frooxiusのようになります

ユーザーIDがユーザー名と一致すると考えてはいけません

使用方法

ユーザIDは、一般的にユーザに見える場面(絞り込み項目やワールド一覧など)では表示しないことが推奨されています。代わりに、 ユーザー名 ProtoFlux ノードを使って、ユーザーのユーザー名を表示するようにしてください。

ユーザIDは変更できないため、 cloud variables ValueUserOverrideなどのコンポーネントで使用することが推奨されます。

ユーザIDの見つけ方

ユーザーIDの取得はシンプルで、複数の方法で取得することができます。

  • | Resoniteアカウントウェブサイトにログインすると、自分のユーザーIDが表示されます
  • UserFromUsernameノードとUserUserIDノードを組み合わせて使用する(この方法は、ユーザーがセッション内にいる場合にのみ有効)
  • ユーザーインスペクターを使用する(これもセッション内にいるユーザーにのみ適用されます)
  • API を使ってユーザーを検索する
  • ツールを利用する場合は、marsmaantjeのユーザー検索ツール(resrec:///U-marsmaantje/R-c671fca0-7b46-413f-a116-d57b8fbdbeba)などを使用してください