コンテンツにスキップ

group.GetChildren

概要

サーバスクリプトで「groupオブジェクト」から子グループ一覧の「groupオブジェクト」のコレクションを取得します。

構文

group.GetChildren()

戻り値

「groupオブジェクト」のコレクションを返却します。

使用例

下記の例ではグループID 1 のグループに所属する子グループのグループIDをログに出力します。

JavaScript
let group = groups.Get(1);
for (let member of group.GetChildren()) {
    context.Log(`${member.GroupId}`);
}

関連情報