group.GetMembers
Overview¶
Get a collection of "groupMember objects" from a "group object" in the "Server Script".
Syntax¶
Return Value¶
Return a collection of "groupMember objects".
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 TenantManager and 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¶
The following example logs the department IDs and user IDs of the members belonging to the group with group ID 1.
JavaScript¶
let group = groups.Get(1);
for (let member of group.GetMembers()) {
context.Log(`${member.DeptId},${member.UserId}`);
}
Supported Versions¶
| Supported versions | Body |
|---|---|
| 1.5.10.0 and later | Changed the values of columns that the user cannot view to null |