Skip to content

group.GetChildren

Overview

In the "Server Script", get a collection of "Group Object" that index "Child Group" from the "Group Object".

Syntax

group.GetChildren()

Return Value

Returns a collection of "Group Object".

Columns you cannot view

From version 1.5.10.0, the values of columns that the user running the server script cannot view are null (the properties themselves remain). By default, only tenant managers can view Disabled. Extended columns that the user cannot view are not included in ClassHash and the other hashes.

You can change which columns can be viewed in Column.json. For details, see "Extended Column".

Usage Examples

In the following example, the group IDs of child groups belonging to the group with group ID 1 are output to the log.

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

Supported Versions

Supported versions Body
1.5.10.0 and later Changed the values of columns that the user cannot view to null